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!)
A256655 R(k), the minimal alternating Fibonacci representation of k, concatenated for k = 0, 1, 2,.... 15

%I #7 Apr 13 2015 09:38:57

%S 0,1,2,3,5,-1,5,8,-2,8,-1,8,13,-5,1,13,-3,13,-2,13,-1,13,21,-8,1,21,

%T -8,2,21,-5,21,-5,1,21,-3,21,-2,21,-1,21,34,-13,1,34,-13,2,34,-13,3,

%U 34,-13,5,-1,34,-8,34,-8,1,34,-8,2,34,-5,34,-5,1,34,-3,34

%N R(k), the minimal alternating Fibonacci representation of k, concatenated for k = 0, 1, 2,....

%C Suppose that b = (b(0), b(1), ... ) is an increasing sequence of positive integers satisfying b(0) = 1 and b(n+1) <= 2*b(n) for n >= 0. Let B(n) be the least b(m) >= n. Let R(0) = 1, and for n > 0, let R(n) = B(n) - R(B(n) - n). The resulting sum of the form R(n) = B(n) - B(m(1)) + B(m(2)) - ... + ((-1)^k)*B(k) is introduced here as the minimal alternating b-representation of n. The sum B(n) + B(m(2)) + ... we call the positive part of R(n), and the sum B(m(1)) + B(m(3)) + ... , the nonpositive part of R(n). The number ((-1)^k)*B(k) is the trace of n.

%C If b(n) = F(n+2), where F = A000045, then the sum is the minimal alternating Fibonacci-representation of n.

%H Clark Kimberling, <a href="/A256655/b256655.txt">Table of n, a(n) for n = 0..1000</a>

%F R(F(k)^2) = F(2k-1) - F(2k-3) + F(2k-5) - ... + d*F(5) + (-1)^k, where d = (-1)^(k+1).

%e R(0) = 0

%e R(1) = 1

%e R(2) = 2

%e R(3) = 3

%e R(4) = 5 - 1

%e R(9) = 13 - 5 + 1

%e R(25) = 34 - 13 + 5 - 1

%e R(64) = 89 - 34 + 13 - 5 + 1

%t f[n_] = Fibonacci[n]; ff = Table[f[n], {n, 1, 70}];

%t s[n_] := Table[f[n + 2], {k, 1, f[n]}];

%t h[0] = {1}; h[n_] := Join[h[n - 1], s[n]];

%t g = h[12]; r[0] = {0};

%t r[n_] := If[MemberQ[ff, n], {n}, Join[{g[[n]]}, -r[g[[n]] - n]]];

%t Flatten[Table[r[n], {n, 0, 60}]]

%Y Cf. A000045, A255973 (trace), A256656 (numbers with positive trace), A256657 (numbers with nonpositive trace), A256663 (positive part of R(n)), A256664 (nonpositive part of R(n)), A256654, A256696 (minimal alternating binary representations), A255974 (minimal alternating triangular-number representations), A256789 (minimal alternating squares representations).

%K easy,sign

%O 0,3

%A _Clark Kimberling_, Apr 08 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 April 19 11:14 EDT 2024. Contains 371791 sequences. (Running on oeis4.)