OFFSET
1,2
COMMENTS
Lexicographically earliest permutation of the natural numbers with the defining property; inverse: A167902; A167901(n) = a(a(n)). [Reinhard Zumkeller, Nov 15 2009]
LINKS
Scott R. Shannon, Table of n, a(n) for n = 1..10000
PROG
(PARI) v=[1]; n=1; while(n<100, if(!issquarefree(v[#v]+n)&&!vecsearch(vecsort(v), n), v=concat(v, n); n=0); n++); v \\ Derek Orr, Jun 08 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Sep 22 2002
EXTENSIONS
More terms from David Wasserman, Jan 17 2005
STATUS
approved