A065876 a(n) is the smallest m > n such that n^2 + 1 divides m^2 + 1.
1, 3, 3, 7, 13, 21, 31, 43, 18, 73, 91, 111, 17, 47, 183, 211, 241, 133, 57, 343, 381, 47, 172, 83, 553, 601, 651, 173, 342, 813, 242, 265, 132, 403, 411, 1191, 1261, 237, 327, 1483, 1561, 1641, 748, 857, 850, 1981, 684, 463, 413, 2353, 255, 2551, 593, 1177, 2863, 123, 3081, 307, 1288, 3423
Offset: 0
Keywords
Links
- Franklin T. Adams-Watters, Table of n, a(n) for n = 0..1000
Programs
-
Mathematica
Do[k = 1; While[m = (k^2 + 1)/(n^2 + 1); m < 2 || !IntegerQ[m], k++ ]; Print[k], {n, 1, 40 } ]
-
PARI
a(n) = { my(m=n+1); while ((m^2 + 1)%(n^2 + 1) != 0, m++); m } \\ Harry J. Smith, Nov 03 2009
Extensions
More terms from Robert G. Wilson v, Dec 11 2001
Further terms from Franklin T. Adams-Watters, Oct 17 2006
Comments