OFFSET
1,2
LINKS
David A. Corneth, Table of n, a(n) for n = 1..10000
EXAMPLE
MATHEMATICA
With[{t = Map[IntegerDigits[#][[1]] &, Nest[Block[{a = #, k = 1, d = Mod[#[[-1]]/10^IntegerExponent[#[[-1]] ], 10]}, While[Nand[FreeQ[a, #], d == Floor[#/10^(IntegerLength[#] - 1)] ] &[k^2], k++]; Append[a, k^2]] &, {1}, 77]]}, Array[Count[t[[1 ;; #]], t[[#]]] &, Length[t]]] (* Michael De Vlieger, Sep 11 2020 *)
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
David A. Corneth, Sep 07 2020
STATUS
approved