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.

User: Ricardo Bittencourt

Ricardo Bittencourt's wiki page.

Ricardo Bittencourt has authored 2 sequences.

A300665 Number of n-step paths made by a chess king, starting from the corner of an infinite chessboard, and never revisiting a cell.

Original entry on oeis.org

1, 3, 15, 75, 391, 2065, 11091, 60215, 330003, 1820869, 10103153, 56313047, 315071801, 1768489771, 9953853677, 56158682949, 317505199769, 1798402412539
Offset: 0

Author

Ricardo Bittencourt, Mar 10 2018

Keywords

Comments

All terms are odd.

Examples

			For n=2, the a(2)=15 paths are:
.
.    0 . .     0 . .     0 . .     0 2 .     0 . .
.    |         |         |         |/         \
.    1 . .     1 . .     1-2 .     1 . .     2-1 .
.    |          \
.    2 . .     . 2 .     . . .     . . .     . . .
.
.    0 . .     0 . .     0 . .     0 . .     0 . 2
.     \         \         \         \         \ /
.    . 1 .     . 1 .     . 1 .     . 1-2     . 1 .
.     /          |          \
.    2 . .     . 2 .     . . 2     . . .     . . .
.
.    0 2 .     0-1 .     0-1 .     0-1 .     0-1-2
.     \|        /          |          \
.    . 1 .     2 . .     . 2 .     . . 2     . . .
.
.    . . .     . . .     . . .     . . .     . . .
		

Crossrefs

A038373 is the same process, but using only horizontal and vertical moves.

Programs

  • Go
    (see GitHubGist link)
  • Mathematica
    next[x_]:=Map[x + #&, Tuples[{-1, 0, 1}, 2]]
    valid[s_]:=Select[next[s[[-1]]], 0<=#[[1]] && 0<=#[[2]] && FreeQ[s,#] &]
    nextpath[p_]:=Outer[Append,{p},valid[p],1]
    iterate[p_]:=Flatten[Map[nextpath, p], 2]
    Table[Length[Nest[iterate, {{{0,0}}}, n-1]], {n,1,7}]

Formula

a(n) = A272469(n) + 2*A005773(n+1) - 1 for n > 0. - Andrey Zabolotskiy, Mar 12 2018

A226226 Number of alignments of n points with no singleton cycles.

Original entry on oeis.org

1, 0, 1, 2, 12, 64, 470, 3828, 36456, 387840, 4603392, 60061440, 855664656, 13207470912, 219609303888, 3912940891104, 74377769483520, 1502277409668096, 32130095812624512, 725400731911792896, 17240044059713320704, 430231117562438446080, 11248105572520779755520
Offset: 0

Author

Ricardo Bittencourt, May 31 2013

Keywords

Comments

a(n) is the number of labeled sequences of cycles, where no cycle has size 1.

Examples

			For n=4, the a(4)=12 alignments with no singletons are: 1234, 1243, 1324, 1342, 1423, 1432, 12|34, 13|24, 14|23, 23|14, 24|13, 34|12.
		

References

  • P. Flajolet and R. Segdewick, Analytic Combinatorics, Cambridge University Press, 2009, page 119

Crossrefs

The alignments with singletons included are given by A007840.

Programs

  • Mathematica
    Range[0, 50]! CoefficientList[ Series[(1 + z - Log[1/(1 - z)])^(-1), {z, 0, 50}], z]
  • PARI
    x='x+O('x^66); Vec(serlaplace(1/(1+x-log(1/(1-x))))) \\ Joerg Arndt, Jun 01 2013

Formula

E.g.f.: 1/(1+x-log(1/(1-x)))
a(n) ~ n!*c/(1-c)^(n+2), where c = -LambertW(-exp(-2)) = 0.158594339563... - Vaclav Kotesovec, Jun 02 2013
a(0) = 1; a(n) = Sum_{k=0..n-2} binomial(n,k) * (n-k-1)! * a(k). - Ilya Gutkovskiy, Apr 26 2021