OFFSET
1,2
COMMENTS
The number of terms of this finite sequence is the fifth central polygonal number, n = 21.
MATHEMATICA
Module[{a = {1}, k}, TimeConstrained[Do[k = 2; While[Or[MemberQ[a, k], MemberQ[IntegerDigits@ k, 0], # != 5] &[Mod[a[[n - 1]], 10] + First@ IntegerDigits@ k], k++]; AppendTo[a, k], {n, 2, 24}], 2]; a] (* Michael De Vlieger, Jul 14 2017 *)
CROSSREFS
KEYWORD
nonn,base,fini,full
AUTHOR
Enrique Navarrete, Jul 01 2017
STATUS
approved