OFFSET
1,2
COMMENTS
A permutation of positive integers.
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..10000
Mathematics Stack Exchange, a_n is the smallest positive integer number such that ...
PROG
(PARI) lista(nn) = {my(va = vector(nn), lastsq); va[1] = 1; lastsq = 1; for (n=2, nn, my(k = ceil(sqrt(sqrtint(lastsq)))); while (#select(x->(x==(k^2-sqrtint(lastsq))), va), k++); va[n] = k^2-sqrtint(lastsq); lastsq = k^2; ); va; } \\ Michel Marcus, Oct 13 2020
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Ivan Neretin, Jan 21 2019, following a suggestion from Edward Turkevich
STATUS
approved