A246447 The odd primes squared plus 1 and the composites squared minus 1.
10, 15, 26, 35, 50, 63, 80, 99, 122, 143, 170, 195, 224, 255, 290, 323, 362, 399, 440, 483, 530, 575, 624, 675, 728, 783, 842, 899, 962, 1023, 1088, 1155, 1224, 1295, 1370, 1443, 1520, 1599, 1682, 1763, 1850, 1935, 2024, 2115, 2210, 2303, 2400, 2499, 2600
Offset: 1
Links
- Jens Kruse Andersen, Table of n, a(n) for n = 1..10000
Programs
-
PARI
lista(nn) = {for (n=3, nn, if (isprime(n), print1(n^2+1, ", "), print1(n^2-1, ", ")););} \\ Michel Marcus, Aug 26 2014
-
Python
for n in range(3,10**3): if isprime(n): print(n**2+1,end=', ') else: print(n**2-1,end=', ') # Derek Orr, Sep 19 2014
Extensions
More terms from Michel Marcus, Aug 26 2014
Comments