OFFSET
1,1
COMMENTS
One way to find a run of n consecutive nonsquarefree numbers such that the first n primes appear in order as factors of numbers in the run is to use the Chinese remainder theorem (though this run is most likely not the earliest of length n).
The moduli are then of course the squares of the first n primes, while the remainders are then the first n terms of this sequence. (See A182433.)
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
a(4) = 45 because the 4th prime is 7, and 7^2 - 4 = 49 - 4 = 45.
MATHEMATICA
Table[Prime[n]^2 - n, {n, 50}]
PROG
(Magma) [NthPrime(n)^2-n: n in [1..50]]; // Bruno Berselli, Apr 16 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Alonso del Arte, Apr 16 2012
EXTENSIONS
a(36) inserted by Vincenzo Librandi, Mar 19 2013
STATUS
approved