A306825 Primitive part of A001353(n).
1, 4, 15, 14, 209, 13, 2911, 194, 2703, 181, 564719, 193, 7865521, 2521, 34945, 37634, 1525870529, 2701, 21252634831, 37441, 6779137, 489061, 4122901604639, 37633, 274758906449, 6811741, 19726764303, 7263361, 11140078609864049, 40321, 155161278879431551
Offset: 1
Keywords
Examples
For n = 8 we have: a(1) = A001353(1), a(1)*a(2) = A001353(2), a(1)*a(2)*a(4) = A001353(4), a(1)*a(2)*a(4)*a(8) = A001353(8). The solution is a(1) = 1, a(2) = 4, a(4) = 14 and a(8) = 194.
Links
- Eric Weisstein's World of Mathematics, Sylvester Cyclotomic Number
- Wikipedia, Lucas Lehmer Primality Test
Programs
-
PARI
b(n) = if(n==1, [1], my(v=vector(n)); v[1]=1; v[2]=4; for(i=3, n, v[i]=4*v[i-1]-v[i-2]); v) a(n) = my(d=divisors(n)); prod(i=1, #d, (b(n)[d[i]])^moebius(n/d[i]))
Comments