Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #8 Jun 14 2018 16:25:05
%S 1,2,3,2,6,9,5,9,13,14,16,11,15,21,20,18,21,26,27,23,24,25,28,35,33,
%T 35,34,31,40,35,42,40,43,44,45,50,51,44,53,51,57,58,63,53,54,65,61,65,
%U 64,67,64,69,63,77,66,75,81,80,79,79,78,77,77,79,82,97,91,90,100,91,91,91,102
%N Number of terms in Zeckendorf representation of 10^n.
%H Chai Wah Wu, <a href="/A025502/b025502.txt">Table of n, a(n) for n = 0..10000</a>
%o (Python)
%o def A025502(n):
%o m, tlist, s = 10**n, [1,2], 0
%o while tlist[-1]+tlist[-2] <= m:
%o tlist.append(tlist[-1]+tlist[-2])
%o for d in tlist[::-1]:
%o if d <= m:
%o s += 1
%o m -= d
%o return s # _Chai Wah Wu_, Jun 14 2018
%Y Cf. A007895.
%K nonn
%O 0,2
%A _Clark Kimberling_