OFFSET
1,2
MAPLE
A130224 := proc(n)
option remember;
if n = 1 then
1;
else
a := procname(n-1) ;
for j from 1 to n-1 do
for d in convert(procname(j), base, 10) do
if d = 1 then
a := a+1 ;
end if;
end do:
end do:
a ;
end if;
end proc:
seq(A130224(n), n=1..52) ; # R. J. Mathar, Aug 06 2016
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Eric Angelini, Aug 05 2007
STATUS
approved