OFFSET
1,2
COMMENTS
Also, the first number that is crossed off at stage n in the Flavius sieve (A000960). - N. J. A. Sloane, Nov 21 2004
The sequence appears to grow roughly like 0.7825*n^2. Note that for n>2, the second occurrence of n in A100002 is at a(n)+1.
LINKS
FORMULA
a(n) ~ Pi/4 * n^2 (via A000960). - Bill McEachen, Aug 08 2024
MATHEMATICA
a[n_] := Fold[#2*Ceiling[#1/#2 + 1] &, 1, Reverse@Range[n - 1]]; Array[a, 30] (* Birkas Gyorgy, Feb 16 2011 *)
PROG
(PARI) {a(n)=local(A); for(k=1, n, if(k==1, A=n^2-n+1, A=(n-k+1)*floor((A-1)/(n-k+1)))); A}
CROSSREFS
KEYWORD
nonn
AUTHOR
T. D. Noe, Nov 11 2004
STATUS
approved