OFFSET
0,3
LINKS
MATHEMATICA
a[0]=b[0]=0; lst={0}; For[n=1, n<250, n++, For[s=Ceiling[Sqrt[a[n-1]]], MemberQ[lst, s^2-a[n-1]], s++, Null]; b[a[n]=s^2-a[n-1]]=n; AppendTo[lst, a[n]]]; Table[b[b[n]], {n, 0, 100}]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Dean Hickerson, Oct 14, 2001
STATUS
approved