Answer: 9, 49, 169, ... 1 more than 9 =1+9=10, which is a multiple of 10. 1 more than 49 =50, which is a multiple of 10. 1 more than 169 =170, which is a multiple of 10.
9, 49, 169, 289... Any square of a number ending with 3 or 7.
9, 49, 169, 289 etc.,
Find the sum of all the prime numbers larger than 2 less than 10^12 that are 1 more than a perfect square. Because the number can get pretty big provide the answer mod 1007.
Note: Problem shouldn't take much more than one minute if your answer is taking too long consider looking for optimizations.
A is 4 more than twice the number of B and P IS 50 more than B total 874 SO how many of each