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!)
A338637 a(n) is the numerator of f(n) where f(n) = 1/n for n <= 2 and f(2n) = f(n-1)*f(n+1)+1, and f(2n+1) = f(n)*f(n+1)+1 for n > 2. 1
1, 1, 3, 5, 7, 9, 19, 29, 43, 53, 79, 149, 187, 293, 583, 849, 1311, 1601, 2343, 3525, 4315, 8025, 12027, 15029, 28119, 44169, 55303, 109533, 171843, 249781, 495991, 766361, 1115087, 1361297, 2103007, 3075769, 3755239, 5651717, 8267267, 10118237 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
EXAMPLE
f(1) = 1/1, so a(1) = 1.
f(2) = 1/2, so a(2) = 1.
f(3) = f(1) * f(2) + 1 = 3/2, so a(3) = 3.
f(4) = f(1) * f(3) + 1 = 1 * 3/2 + 1 = 5/2, so a(4) = 5.
f(5) = f(2) * f(3) + 1 = 1/2 * 3/2 + 1 = 7/4, so a(5) = 7.
f(n) for n>=1: 1, 1/2, 3/2, 5/2, 7/4, 9/4, 19/4, 29/8, 43/8, 53/8, 79/16, 149/16, 187/16, 293/32, 583/32, 849/32 ...
PROG
(PARI) f(n) = if (n<=2, 1/n, my(x=n\2); if (n%2, f(x)*f(x+1)+1, f(x-1)*f(x+1)+1));
a(n) = numerator(f(n)); \\ Michel Marcus, Nov 05 2020
CROSSREFS
Denominators are given in A173862.
Sequence in context: A025072 A369612 A083107 * A003052 A003219 A030142
KEYWORD
nonn,frac
AUTHOR
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 September 4 14:53 EDT 2024. Contains 375683 sequences. (Running on oeis4.)