cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A333132 a(n) = n for n <= 3; thereafter a(n) = 2^(a(n-1)-1) + a(n-1).

Original entry on oeis.org

1, 2, 3, 7, 71, 1180591620717411303495
Offset: 1

Views

Author

Ilya Gutkovskiy, Mar 08 2020

Keywords

Comments

The next term is too large to include.
a(n) = number of compositions of a(1) + number of compositions of a(2) + ... + number of compositions of a(n-1) for n > 2.

Examples

			a(5) = 71, 71 in base 2 (reverse order of digits) = 1110001.
                                                    |||   |
                                                    123   7
		

Crossrefs

Programs

  • Mathematica
    a[n_] := a[n] = If[n <= 3, n, 2^(a[n - 1] - 1) + a[n - 1]]; Table[a[n], {n, 1, 6}]

Formula

a(n) = n for n <= 2; thereafter a(n) = Sum_{k=1..n-1} 2^(a(k)-1).