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.

Previous Showing 31-40 of 43 results. Next

A208591 Number of n-bead necklaces labeled with numbers -2..2 not allowing reversal, with sum zero.

Original entry on oeis.org

1, 3, 7, 23, 77, 297, 1163, 4783, 20041, 85735, 371955, 1634429, 7254547, 32486709, 146576693, 665720447, 3041096613, 13963651875, 64410421307, 298331882891, 1386933722321, 6469566027565, 30271114380919, 142037330038069, 668187211909327
Offset: 1

Views

Author

R. H. Hardin, Feb 29 2012

Keywords

Examples

			All solutions for n=3:
.-2...-1...-2...-2....0...-1...-1
..2...-1....1....0....0....1....0
..0....2....1....2....0....0....1
		

Crossrefs

Column 2 of A208597.

Programs

  • Mathematica
    comps[r_, m_, k_] := Sum[(-1)^i*Binomial[r - 1 - i*m, k - 1]*Binomial[k, i], {i, 0, Floor[(r - k)/m]}]; a[n_Integer, k_] := DivisorSum[n, EulerPhi[n/#] comps[#*(k + 1), 2 k + 1, #] &]/n; a[n_] = a[n, 2]; Array[a, 25] (* Jean-François Alcover, Nov 01 2017, after Andrew Howroyd *)

Formula

a(n) = (1/n) * Sum_{d | n} totient(n/d) * A005191(d). - Andrew Howroyd, Mar 02 2017

Extensions

a(22)-a(25) from Andrew Howroyd, Mar 02 2017

A104313 Numbers n such that the coefficient of x^(2n) in (x^4+x^3+x^2+x+1)^n is prime.

Original entry on oeis.org

2, 3, 28, 30, 31
Offset: 1

Views

Author

T. D. Noe, Mar 01 2005

Keywords

Comments

n such that A005191(n) is prime. No other n<10000. The primes are in A104314. Only coefficients of the x, x^(2n) and x^(4n-1) terms can be prime; the coefficients of x and x^(4n-1) terms are prime whenever n is prime.
No other n<195316. Most likely this sequence is finite. Terms A005191(n) that are not a multiple of 5 have zero density, namely, there are fewer than n^(log(4)/log(5)) such terms among A005191(1..n). In particular, A005191(5k+2) and A005191(5k+4) are multiples of 5 for every k. - Max Alekseyev, Apr 25 2005

Crossrefs

Cf. A005191 (pentanomial coefficients).

Programs

  • Mathematica
    f=1; Do[f=Expand[f*(x^4+x^3+x^2+x+1)]; s=Coefficient[f, x, 2n]; If[PrimeQ[s], Print[{n, s}]], {n, 100}]

A124893 Number of base 15 circular n-digit numbers with adjacent digits differing by 2 or less.

Original entry on oeis.org

1, 15, 69, 255, 1097, 4765, 21237, 95873, 437537, 2012997, 9321899, 43397633, 202926209, 952396005, 4484003747, 21168581905, 100170213121, 474981809053, 2256307682541, 10735210220803, 51148724456627, 244007372314919
Offset: 0

Views

Author

R. H. Hardin, Dec 28 2006

Keywords

Comments

[Empirical] a(base,n)=a(base-1,n)+A005191(n+1) for base>=2.int(n/2)+1.
See A285280 for confirmation of linear recurrence and code to produce sequence. - Ray Chandler, Aug 12 2023.

Crossrefs

Cf. Row 15 of A285280.

A124949 Number of base 21 circular n-digit numbers with adjacent digits differing by 2 or less.

Original entry on oeis.org

1, 21, 99, 369, 1607, 7051, 31743, 144683, 666527, 3094947, 14463569, 67946603, 320593259, 1518250599, 7212838277, 34360479199, 164079145839, 785173661987, 3764380920489, 18077996769707, 86948519336037, 418760656546517
Offset: 0

Views

Author

R. H. Hardin, Dec 28 2006

Keywords

Comments

[Empirical] a(base,n)=a(base-1,n)+A005191(n+1) for base>=2.int(n/2)+1.
See A285280 for confirmation of linear recurrence and code to produce sequence. - Ray Chandler, Aug 12 2023.

Crossrefs

Cf. Row 21 of A285280.

A124950 Number of base 22 circular n-digit numbers with adjacent digits differing by 2 or less.

Original entry on oeis.org

1, 22, 104, 388, 1692, 7432, 33494, 152818, 704692, 3275272, 15320514, 72038098, 340204434, 1612559698, 7667644032, 36559128748, 174730634628, 836872304392, 4015726470338, 19301794774522, 92915156135782, 447886264698862
Offset: 0

Views

Author

R. H. Hardin, Dec 28 2006

Keywords

Comments

[Empirical] a(base,n)=a(base-1,n)+A005191(n+1) for base>=2.int(n/2)+1.
See A285280 for confirmation of linear recurrence and code to produce sequence. - Ray Chandler, Aug 12 2023.

Crossrefs

Cf. Row 22 of A285280.

A124951 Number of base 23 circular n-digit numbers with adjacent digits differing by 2 or less.

Original entry on oeis.org

1, 23, 109, 407, 1777, 7813, 35245, 160953, 742857, 3455597, 16177459, 76129593, 359815609, 1706868797, 8122449787, 38757778297, 185382123417, 888570946797, 4267072020187, 20525592779337, 98881792935527, 477011872851207
Offset: 0

Views

Author

R. H. Hardin, Dec 28 2006

Keywords

Comments

[Empirical] a(base,n)=a(base-1,n)+A005191(n+1) for base>=2.int(n/2)+1.
See A285280 for confirmation of linear recurrence and code to produce sequence. - Ray Chandler, Aug 12 2023.

Crossrefs

Cf. Row 23 of A285280.

A124952 Number of base 24 circular n-digit numbers with adjacent digits differing by 2 or less.

Original entry on oeis.org

1, 24, 114, 426, 1862, 8194, 36996, 169088, 781022, 3635922, 17034404, 80221088, 379426784, 1801177896, 8577255542, 40956427846, 196033612206, 940269589202, 4518417570036, 21749390784152, 104848429735272, 506137481003552
Offset: 0

Views

Author

R. H. Hardin, Dec 28 2006

Keywords

Comments

[Empirical] a(base,n)=a(base-1,n)+A005191(n+1) for base>=2.int(n/2)+1.
See A285280 for confirmation of linear recurrence and code to produce sequence. - Ray Chandler, Aug 12 2023.

Crossrefs

Cf. Row 24 of A285280.

A124953 Number of base 25 circular n-digit numbers with adjacent digits differing by 2 or less.

Original entry on oeis.org

1, 25, 119, 445, 1947, 8575, 38747, 177223, 819187, 3816247, 17891349, 84312583, 399037959, 1895486995, 9032061297, 43155077395, 206685100995, 991968231607, 4769763119885, 22973188788967, 110815066535017, 535263089155897
Offset: 0

Views

Author

R. H. Hardin, Dec 28 2006

Keywords

Comments

[Empirical] a(base,n)=a(base-1,n)+A005191(n+1) for base>=2.int(n/2)+1.
See A285280 for confirmation of linear recurrence and code to produce sequence. - Ray Chandler, Aug 12 2023.

Crossrefs

Cf. Row 25 of A285280.

A124954 Number of base 26 circular n-digit numbers with adjacent digits differing by 2 or less.

Original entry on oeis.org

1, 26, 124, 464, 2032, 8956, 40498, 185358, 857352, 3996572, 18748294, 88404078, 418649134, 1989796094, 9486867052, 45353726944, 217336589784, 1043666874012, 5021108669734, 24196986793782, 116781703334762
Offset: 0

Views

Author

R. H. Hardin, Dec 28 2006

Keywords

Comments

[Empirical] a(base,n)=a(base-1,n)+A005191(n+1) for base>=2.int(n/2)+1.
See A285280 for confirmation of linear recurrence and code to produce sequence. - Ray Chandler, Aug 12 2023.

Crossrefs

Cf. Row 26 of A285280.

A124955 Number of base 27 circular n-digit numbers with adjacent digits differing by 2 or less.

Original entry on oeis.org

1, 27, 129, 483, 2117, 9337, 42249, 193493, 895517, 4176897, 19605239, 92495573, 438260309, 2084105193, 9941672807, 47552376493, 227988078573, 1095365516417, 5272454219583, 25420784798597, 122748340134507
Offset: 0

Views

Author

R. H. Hardin, Dec 28 2006

Keywords

Comments

[Empirical] a(base,n)=a(base-1,n)+A005191(n+1) for base>=2.int(n/2)+1.
See A285280 for confirmation of linear recurrence and code to produce sequence. - Ray Chandler, Aug 12 2023.

Crossrefs

Cf. Row 27 of A285280.
Previous Showing 31-40 of 43 results. Next