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!)
A135513 Number of Pierce-Engel hybrid expansions of 4/b, b>=4. 0
1, 4, 2, 4, 1, 2, 2, 4, 1, 4, 2, 2, 1, 4, 2, 4, 1, 2, 2, 4, 1, 4, 2, 2, 1, 4, 2, 4, 1, 2, 2, 4, 1, 4, 2, 2, 1, 4, 2, 4, 1, 2, 2, 4, 1, 4, 2, 2, 1, 4, 2, 4, 1, 2, 2, 4, 1, 4, 2, 2, 1, 4, 2, 4, 1, 2, 2, 4, 1, 4, 2, 2, 1, 4, 2, 4, 1, 2, 2, 4, 1, 4, 2, 2, 1, 4, 2, 4, 1, 2, 2, 4, 1, 4, 2, 2, 1, 4, 2, 4, 1, 2, 2, 4, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
4,2
COMMENTS
Gives the number of representations of 4/b (for b>=4) as a sum of fractions 4/b= a_1/q_1 + a_2/(q_1 q_2) + a_3/(q_1 q_2 q_3) + ... a_n/(q_1 q_2 ... q_n), where each a_i is either 1 or -1 and the q_i are chosen greedily.
Equivalently, the q_i can be found by taking r_1 = 4 and applying either b=r_i q_i + r_(i+1) or b=r_i q_i - r(i-1), where 0<=r_(i-1)<r_i. (When the first equation is used to find q_i, then a_(i+1) will be of opposite sign than a_i. If the second is used, a_(i+1) will be of the same sign as a_i.) The process terminates when some r_(n+1)=0.
LINKS
Eric Weisstein's World of Mathematics, Pierce Expansion.
Eric Weisstein's World of Mathematics, Engel Expansion.
FORMULA
h(n) = h(n mod 12), for n, (n mod 12) >= 4.
EXAMPLE
13 = 4(3) + 1 -> 1(13) + 0 or
13 = 4(4) - 3 -> 3(4) + 1 -> 1(13) + 0 or
13 = 4(4) - 3 -> 3(5) - 2 -> 2(6) + 1 -> 1(13) + 0 or
13 = 4(4) - 3 -> 3(5) - 2 -> 2(7) - 1 -> 1(13) + 0
So 4/13 = 1/3 - 1/39, 1/4 + 1/16 - 1/208, 1/4 + 1/20 + 1/120 - 1/1560, 1/4 + 1/20 + 1/140 + 1/1820: thus h(13) = 4
CROSSREFS
Sequence in context: A068454 A090976 A156199 * A176895 A335261 A351864
KEYWORD
easy,nonn
AUTHOR
A. Sutyak (asutyak(AT)gmail.com), Feb 09 2008
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 23 04:41 EDT 2024. Contains 372758 sequences. (Running on oeis4.)