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!)
A061531 Boustrophedon transform of b(0)=1 and otherwise b(n)=mu(n). 0
1, 2, 2, 1, 3, 10, 37, 173, 865, 4987, 31695, 222088, 1696285, 14039493, 125126705, 1194880848, 12170926545, 131720400008, 1509404188204, 18257416121656, 232460634872927, 3107769796958470, 43526289269263574, 637323017146341113 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
EXAMPLE
a(5) = 10+mu(4) = (9+1)+0 = (6+3)+1+0 = (2+4)+4+0 = (-1+3)+8+0 = mu(5)+a(4)+8+mu(4).
PROG
(Python)
from itertools import count, islice, accumulate
from sympy import mobius
def A061531_gen(): # generator of terms
blist, m = tuple(), 1
for i in count(1):
yield (blist := tuple(accumulate(reversed(blist), initial=m)))[-1]
m = mobius(i)
A061531_list = list(islice(A061531_gen(), 20)) # Chai Wah Wu, Jun 11 2022
CROSSREFS
mu(n) = A008683(n) = ((-1)^A001221(n))*(0^(A001222(n)-A001221(n))).
Sequence in context: A241186 A258222 A112324 * A368093 A368116 A338435
KEYWORD
easy,nonn
AUTHOR
Frank Ellermann, Jun 13 2001
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 April 25 03:15 EDT 2024. Contains 371964 sequences. (Running on oeis4.)