The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A356400 a(n) is the smallest term (in absolute value) in the negaFibonacci representation of -n. 2
-1, 1, -3, -1, 1, 2, 1, -8, -1, 1, -3, -1, 1, 2, 1, 5, -1, 1, 2, 1, -21, -1, 1, -3, -1, 1, 2, 1, -8, -1, 1, -3, -1, 1, 2, 1, 5, -1, 1, 2, 1, 13, -1, 1, -3, -1, 1, 2, 1, 5, -1, 1, 2, 1, -55, -1, 1, -3, -1, 1, 2, 1, -8, -1, 1, -3, -1, 1, 2, 1, 5, -1, 1, 2, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
See A139764 and A356399 for similar sequences.
LINKS
FORMULA
a(n) = -n iff n belongs to A001906.
EXAMPLE
For n = 11:
- using F(-k) = A039834(k):
- -11 = F(-4) + F(-6),
- so a(11) = F(-4) = -3.
PROG
(PARI) a(n) = { my (v=0, neg=0, pos=0, f); n=-n; for (e=0, oo, f=fibonacci(-1-e); if (f<0, neg+=f, pos+=f); if (neg <=n && n <= pos, while (n, if (f<0, neg-=f, pos-=f); if (neg > n || n > pos, v=f; n-=f; ); f=fibonacci(-1-e--); ); return (v); ); ); }
CROSSREFS
Sequence in context: A095276 A246457 A089338 * A153066 A126209 A176346
KEYWORD
sign,base
AUTHOR
Rémy Sigrist, Aug 06 2022
STATUS
approved

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 May 22 20:45 EDT 2024. Contains 372758 sequences. (Running on oeis4.)