OFFSET
0,4
COMMENTS
New maxima occur at 2,3,5,11,31,59,211,331,619,1759,2341,3049,4343,12373,15431,18691,31667,66643,67651,...
4343 and 15431 are the only composites in the terms displayed above.
If we define a new maximum as greater than or equal to the previous maximum we get
1,2,3,5,7,11,19,23,31,59,131,163,167,197,211,331,467,521,547,...
This is very dense with primes and contains the previous list as a subset.
FORMULA
G.f.: Sum_{k>0} x^prime(k)/(1-x^k).
MATHEMATICA
NN=200; MM=PrimePi[NN]+1; Table[Boole[n>2]+Sum[Boole[(n>Prime[k])&&(Mod[n-Prime[k]+k-1, k] == 0)], {k, 2, MM}], {n, 1, NN}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Benedict W. J. Irwin, Nov 28 2016
STATUS
approved