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.

A325906 a(n) = ( (-1)^n * Sum_{k=0..n-2} (-1)^k*10^(2^k) + 10^(2^(n-1)) - ((-1)^n+3)/2 )/9.

Original entry on oeis.org

1, 12, 1121, 11112212, 1111111122221121, 11111111111111112222222211112212, 1111111111111111111111111111111122222222222222221111111122221121
Offset: 1

Views

Author

Seiichi Manyama, Sep 08 2019

Keywords

Examples

			n |       a(n)       |    A325910(n)
--+------------------+-----------------
1 |                1 |                1
2 |               12 |               10
3 |             1121 |             1101
4 |         11112212 |         11110010
5 | 1111111122221121 | 1111111100001101
		

Crossrefs

Programs

  • Mathematica
    a[n_] := ((-1)^n * Sum[(-1)^k * 10^(2^k), {k, 0, n - 2}] + 10^(2^(n - 1)) - ((-1)^n + 3)/2)/9; Array[a, 7] (* Amiram Eldar, May 07 2021 *)
  • PARI
    {a(n) = ((-1)^n*sum(k=0, n-2, (-1)^k*10^2^k)+10^2^(n-1)-((-1)^n+3)/2)/9}