This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A260072 #25 Jul 01 2025 21:39:54 %S A260072 17,257,8209,65537,649801 %N A260072 Primes p such that (p-1)^2+1 divides 2^(p-1)-1. %C A260072 a(6), if it exists, is larger than 1.7*10^12. - _Giovanni Resta_, Jul 23 2015 %C A260072 N = 1382401 is the smallest composite number such that (n-1)^2+1 divides 2^(n-1)-1, cf. A260407; see also A081762 and A260406. The sequence contains all Fermat primes 2^2^k+1 > 5 (A019434). - _M. F. Hasler_, Jul 24 2015 %e A260072 17 is in this sequence because (17 - 1)^2 + 1 = 257 divides 2^(17 - 1) - 1 = 65535; 65535 / 257 = 255. %t A260072 fQ[n_] := PowerMod[2, n-1, (n-1)^2 + 1] == 1; p = 2; lst = {}; While[p < 10^9, If[ fQ@ p, AppendTo[lst, p]]; p = NextPrime@ p] (* _Robert G. Wilson v_, Jul 24 2015 *) %o A260072 (Magma) [n: n in [1..2000000] | IsPrime(n) and (2^(n-1)-1) mod ((n-1)^2 + 1) eq 0]; %Y A260072 Cf. A081762 (primes p such that (p-1)^2 - 1 divides 2^(p-1) - 1). %K A260072 nonn,more %O A260072 1,1 %A A260072 _Jaroslav Krizek_, Jul 22 2015