A180871 Index of term in Sylvester's sequence A000058 divisible by prime A007996(n).
0, 1, 2, 4, 3, 11, 4, 9, 6, 6, 6, 29, 64, 42, 9, 59, 10, 80, 39, 103, 140, 41, 137, 53, 69, 146, 104, 14, 92, 15, 117, 199, 75, 98, 316, 233, 28, 92, 281, 44, 136, 26, 258, 7, 38, 6, 176, 126, 74, 59, 89, 61, 45, 79, 13, 448, 119, 180, 290, 184, 348, 502, 508, 161, 7, 265, 229
Offset: 1
Keywords
Examples
A000058(4) = 1807 = 43 * 181 = A007996(4) * A007996(7), so a(4) = a(7) = 4. - _Jonathan Sondow_, Jan 26 2014
Links
- Max Alekseyev, Table of n, a(n) for n = 1..12046 (first 8181 terms are also given at the Andersen link)
- Jens Kruse Andersen, Factorization of Sylvester's sequence
Programs
-
Mathematica
t={}; p=1; While[Length[t]<100, p=NextPrime[p]; s=Mod[2,p]; k=0; modSet={}; While[s>0 && !MemberQ[modSet,s], AppendTo[modSet,s]; k++; s=Mod[s^2-s+1,p]]; If[s==0, AppendTo[t,{p,k}]]]; Transpose[t][[2]]
Formula
Extensions
Definition clarified by Jonathan Sondow, Jan 26 2014
Comments