login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A265404 a(n) = number of Spironacci numbers (A078510) needed to sum to n using the greedy algorithm. 5

%I #21 Dec 18 2015 11:25:03

%S 0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,2,2,1,2,2,1,2,2,1,2,2,2,1,2,2,

%T 2,2,1,2,2,2,2,2,1,2,2,2,2,2,1,2,2,2,2,2,1,2,2,2,2,2,2,1,2,2,2,2,2,2,

%U 2,1,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,1,2

%N a(n) = number of Spironacci numbers (A078510) needed to sum to n using the greedy algorithm.

%C a(0) = 0, because no numbers are needed to form an empty sum, which is zero.

%C First 2 occurs as a(17), first 3 at a(234), first 4 at a(3266).

%H Antti Karttunen, <a href="/A265404/b265404.txt">Table of n, a(n) for n = 0..10132</a>

%e For n=17, the largest Spironacci number <= 17 is 16 (= A078510(22)). 17 - 16 = 1, which is A078510(1), thus 17 = A078510(22) + A078510(1), requiring only two such numbers for its sum, thus a(17) = 2.

%e For n=234, the largest Spironacci number <= 234 is 217 (= A078510(45)). 234-217 = 17 (whose decomposition is shown above), so 234 = A078510(45) + A078510(22) + A078510(1), thus a(234) = 3.

%Y Cf. A078510 (from its term a(7) onward gives also the positions of ones here).

%Y Cf. also A007895, A053610, A265743, A265744, A265745.

%K nonn

%O 0,18

%A _Antti Karttunen_, Dec 16 2015

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 9 20:51 EDT 2024. Contains 375044 sequences. (Running on oeis4.)