OFFSET
1,2
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
PROG
(PARI) a(n)=my(N=1); n+sum(i=2, n, logint(N*=10, 3)); \\ Charles R Greathouse IV, Jan 10 2018
(PARI) first(n)=my(s, N=1/10); vector(n, i, s+=logint(N*=10, 3)+1) \\ Charles R Greathouse IV, Jan 10 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved