OFFSET
1,2
COMMENTS
a(39) = 44. - Michel Marcus, Jan 26 2022
Let k = ceiling(sqrt(2*10^m)). Then some terms are of the form k or k + 1. - David A. Corneth, Jan 27 2022
PROG
(Haskell)
import Data.List (elemIndex)
import Data.Maybe (fromJust)
a226030 = (+ 1) . fromJust . (`elemIndex` a226029_list)
(PARI) nb(n) = {my(x=n*(n-1)/2+1, y=n*(n+1)/2, nx=#Str(x), ny=#Str(y), s=0); for (i=nx, ny, if (i==nx, if (i==ny, s+=(y+1-x)*i, s+=(10^i-x)*i), if (i==ny, s+=(y+1-10^(i-1))*i, s+=i*(10^(i+1)-10^i+1)); ); ); s; } \\ A182402
a(n) = my(k=1, last=nb(k), new=nb(k+1)); while (new-last !=n, k++; last=new; new=nb(k+1)); k; \\ Michel Marcus, Jan 26 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, May 26 2013
EXTENSIONS
a(12)-a(18) from Michel Marcus, Jan 26 2022
More terms from David A. Corneth, Jan 26 2022
STATUS
approved