A372894 A positive integer 2^k*m, where m is odd and k >= 0, belongs to this sequence iff the Jacobi symbol (F_n/m) = -1 for only a finite number of Fermat numbers F_n = A000215(n).
1, 2, 4, 8, 9, 13, 15, 16, 17, 18, 21, 25, 26, 30, 32, 34, 35, 36, 42, 49, 50, 52, 60, 64, 68, 70, 72, 81, 84, 97, 98, 100, 104, 117, 120, 121, 123, 128, 135, 136, 140, 144, 153, 162, 168, 169, 189, 193, 194, 195, 196, 200, 205, 208, 221, 225, 234, 240, 241, 242, 246, 255, 256, 257, 270, 272, 273, 280, 287, 288, 289
Offset: 1
Keywords
Examples
For n >= 1, we have 2^2^n + 1 == 65, 5, 17, 257 (mod 341) respectively for n == 0, 1, 2, 3 (mod 4). As we have (65/341) = (5/341) = (17/341) = (257/341) = 1, 341 is a term.
Links
- Jianing Song, Table of n, a(n) for n = 1..10000
Crossrefs
Programs
-
PARI
isA372894(n) = n = (n >> valuation(n,2)); my(d = znorder(Mod(2, n)), StartPoint = valuation(d, 2), LengthTest = znorder(Mod(2, d >> StartPoint))); for(i = StartPoint, StartPoint + LengthTest - 1, if(kronecker(lift(Mod(2, n)^2^i + 1), n) == -1, return(0))); 1
Comments