OFFSET
1,2
COMMENTS
Zeroless analog of the positive hexagonal numbers.
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..10000
MATHEMATICA
noz[n_] := FromDigits[DeleteCases[IntegerDigits[n], 0]];
Block[{n = 1}, NestList[noz[++n*4 - 3 + #] &, 1, 100]]
nxt[{n_, a_}]:={n+1, FromDigits[DeleteCases[IntegerDigits[a+4n+1], 0]]}; NestList[nxt, {1, 1}, 60][[;; , 2]] (* Harvey P. Dale, Jul 08 2024 *)
PROG
(PARI) noz(n) = fromdigits(select(sign, digits(n))); \\ A004719
lista(nn) = my(va=vector(nn)); for (n=1, nn, va[n] = if (n==1, 1, noz(va[n-1] + 4*n - 3))); va; \\ Michel Marcus, Jun 03 2024
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Paolo Xausa, May 28 2024
STATUS
approved