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.

A365062 Enumeration of | Sort_n(123,321) |.

Original entry on oeis.org

1, 1, 2, 4, 7, 14, 28, 56, 112, 224, 448, 896, 1792, 3584, 7168, 14336, 28672, 57344, 114688, 229376, 458752, 917504, 1835008, 3670016, 7340032, 14680064, 29360128, 58720256, 117440512, 234881024, 469762048, 939524096, 1879048192, 3758096384, 7516192768, 15032385536
Offset: 0

Views

Author

Michael De Vlieger, Aug 23 2023

Keywords

Crossrefs

Programs

  • Mathematica
    {1}~Join~Array[If[# <= 3, 2^(# - 1), 7*2^(# - 4)] &, 30]

Formula

a(0) = 1, a(n) = 2^(n-1) for n = 1..3, a(n) = 7*2^(n-4) for n > 3.
From Chai Wah Wu, Aug 24 2023: (Start)
a(n) = 2*a(n-1) for n > 4.
G.f.: (x^4 + x - 1)/(2*x - 1). (End)