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.

Showing 1-6 of 6 results.

A165252 Triangle read by rows: Frequency with which the values of cos(2*Pi/k) mod j, listed in A164823, occur for each j >= 1, taken over k = 1..j-1.

Original entry on oeis.org

0, 0, 1, 0, 2, 1, 0, 3, 0, 1, 0, 4, 1, 0, 2, 0, 5, 2, 1, 2, 2, 0, 6, 0, 2, 1, 0, 3, 0, 7, 1, 3, 1, 3, 1, 3, 0, 8, 1, 2, 2, 1, 2, 2, 4, 0, 9, 1, 1, 4, 2, 4, 3, 1, 4, 0, 10, 1, 0, 1, 3, 1, 2, 0, 2, 5
Offset: 1

Views

Author

Keywords

Comments

The FORTRAN program used to generate this sequence is too complex to be listed here.

Examples

			The triangle of numbers is:
..j....Frequency of values over k
.......0..1..2..3..4..5..6..7..8..9..10
..1....0
..2....0..1
..3....0..2..1
..4....0..3..0..1
..5....0..4..1..0..2
..6....0..5..2..1..2..2
..7....0..6..0..2..1..0..3
..8....0..7..1..3..1..3..1..3
..9....0..8..1..2..2..1..2..2..4
.10....0..9..1..1..4..2..4..3..1..4
.11....0.10..1..0..1..3..1..2..0..2..5
		

Crossrefs

A164822 Triangle read by rows, giving the number of solutions mod j of T_k(x) = 1, for j >= 2 and k = 1:j-1, where T_k is the k'th Chebyshev polynomial of the first kind.

Original entry on oeis.org

1, 1, 2, 1, 2, 1, 1, 2, 2, 2, 1, 4, 1, 5, 1, 1, 2, 2, 2, 1, 4, 1, 4, 1, 7, 1, 4, 1, 1, 2, 3, 4, 1, 6, 1, 4, 1, 4, 2, 5, 1, 8, 1, 5, 2, 1, 2, 2, 2, 3, 4, 1, 2, 2, 6, 1, 4, 1, 11, 1, 4, 1, 11, 1, 4, 1, 1, 2, 2, 2, 1, 4, 4, 2, 2, 2, 1, 6, 1, 4, 2, 5, 1, 8, 1, 9, 2, 4, 1, 9, 1, 1, 4, 2, 8, 1, 8, 1, 8, 2, 4, 1, 14, 1
Offset: 1

Views

Author

Keywords

Comments

T_k(0) = 1 if k == 0 mod 4, but x=0 is not counted as a solution. - Robert Israel, Apr 06 2015

Examples

			The triangle of numbers is:
.....k..1..2..3..4..5..6..7..8..9.10
..j..
..2.....1
..3.....1..2
..4.....1..2..1
..5.....1..2..2..2
..6.....1..4..1..5..1
..7.....1..2..2..2..1..4
..8.....1..4..1..7..1..4..1
..9.....1..2..3..4..1..6..1..4
.10.....1..4..2..5..1..8..1..5..2
.11.....1..2..2..2..3..4..1..2..2..6
		

Crossrefs

Programs

  • Maple
    seq(seq(nops(select(t -> orthopoly[T](k, t)-1 mod j = 0, [$1..j-1])), k=1..j-1), j=2..20); # Robert Israel, Apr 06 2015
  • Mathematica
    Table[Length[Select[Range[j-1], Mod[ChebyshevT[k, #]-1, j] == 0&]], {j, 2, 20}, {k, 1, j-1}] // Flatten (* Jean-François Alcover, Mar 27 2019, after Robert Israel *)

Formula

From Robert Israel, Apr 06 2015 (Start):
a(k,j) is multiplicative in j for each odd k.
a(k,j)+1 is multiplicative in j for k divisible by 4.
a(k,j)+[j=2] is multiplicative in j for k == 2 mod 4, where [j=2] = 1 if j=2, 0 otherwise.
a(1,j) = 1.
a(2,j) = A060594(j) if j is odd, A060594(j/2) if j is even.
a(3,2^m) = 1.
a(3,p^m) = p^floor(m/2)+1 if p is a prime > 3.
a(4,p^m) = p^floor(m/2)+1 if p is a prime > 2.
a(5,p) = 3 if p is in A045468, 1 for other primes p. (End)

Extensions

Sequence and definition corrected by Christopher Hunt Gribble, Sep 10 2009
Minor edit by N. J. A. Sloane, Sep 13 2009

A164831 a(n) is the number of values taken by cos(2*Pi/k) mod n for all k in 1..n-1.

Original entry on oeis.org

0, 1, 3, 4, 7, 12, 12, 19, 22, 29, 25, 40, 29, 48, 59, 85, 42, 83, 53, 93, 99, 96, 64, 175, 144, 113, 159, 161, 97, 235, 100, 297, 187, 165, 231, 274, 111, 200, 224, 386, 156, 398, 149, 303, 425, 248, 152, 733, 450, 513, 332, 359, 181, 572, 448, 648, 384, 361, 221, 786
Offset: 1

Views

Author

Keywords

Comments

See A164823 for explanatory comment and the definition of "cos(x) mod j".

Crossrefs

Extensions

Edited by N. J. A. Sloane, Sep 01 2009
Sequence corrected by Christopher Hunt Gribble, Sep 10 2009

A164846 Triangle read by rows: frequency with which the number of values taken by cos(2*Pi/k) mod j occurs for each j >= 1, taken over k = 1..j-1.

Original entry on oeis.org

0, 0, 1, 0, 1, 1, 0, 2, 1, 0, 0, 1, 3, 0, 0, 0, 3, 0, 0, 1, 1, 0, 2, 3, 0, 1, 0, 0, 0, 4, 0, 0, 2, 0, 0, 1, 0, 3, 1, 1, 2, 0, 1, 0, 0, 0, 3, 2, 0, 1, 2, 0, 0, 1, 0, 0, 2, 5, 1, 1, 0, 1, 0, 0, 0, 0, 0, 6, 0, 0, 3, 0, 0, 0, 0, 0, 0, 2, 0, 3, 6, 0, 2, 0, 1, 0, 0, 0, 0, 0, 0, 0, 5, 2, 0, 2, 1, 0, 0, 1, 2, 0, 0, 0, 0
Offset: 1

Views

Author

Keywords

Comments

See A164823 for explanatory comment and the definition of "cos(x) mod j".

Examples

			The triangle of numbers is:
..j....Frequency of numbers of solutions over k
.......0..1..2..3..4..5..6..7..8..9..10
..1....0
..2....0..1
..3....0..1..1
..4....0..2..1..0
..5....0..1..3..0..0
..6....0..3..0..0..1..1
..7....0..2..3..0..1..0..0
..8....0..4..0..0..2..0..0..1
..9....0..3..1..1..2..0..1..0..0
.10....0..3..2..0..1..2..0..0..1..0
.11....0..2..5..1..1..0..1..0..0..0..0
		

Crossrefs

Extensions

Minor edits from N. J. A. Sloane, Sep 01 2009
Sequence corrected by Christopher Hunt Gribble, Sep 10 2009
Minor edits by Christopher Hunt Gribble, Oct 01 2009

A165609 Irregular triangle read by rows: Nonexistent values of cos(2*Pi/k) mod j, for j >= 2 and 1 <= k <= j-1.

Original entry on oeis.org

2, 3, 2, 5, 3, 8, 3, 8, 9, 2, 5, 10, 3, 4, 15, 16, 4, 10, 13, 19, 4, 19, 22, 27, 2, 5, 10, 11, 20, 21, 26, 29, 3, 6, 9, 15, 20, 24, 25, 32, 33, 5, 6, 10, 11, 33, 37, 3, 8, 9, 13, 20, 23, 30, 34, 35, 40, 4, 10, 18, 19, 28, 29, 37, 43
Offset: 1

Views

Author

Keywords

Comments

See A164823 for explanatory comment and the definition of "cos(x) mod j".

Examples

			The irregular triangle of numbers without empty rows is:
..j....Nonexistent values of cos(2*Pi/k) mod j
..4....2
..5....3
..7....2..5
.11....3..8
.13....3..8..9
.17....2..5.10
.19....3..4.15.16
.23....4.10.13.19
.29....4.19.22.27
.31....2..5.10.11.20.21.26.29
.37....3..6..9.15.20.24.25.32.33
.41....5..6.10.11.33.37
.43....3..8..9.13.20.23.30.34.35.40
.47....4.10.18.19.28.29.37.43
		

Crossrefs

Extensions

Minor edits from N. J. A. Sloane, Sep 25 2009
Minor edit by Christopher Hunt Gribble, Oct 01 2009

A165619 a(n) = number of nonexistent values of cos(2*Pi/k) mod n, taken over k = 1..n-1.

Original entry on oeis.org

0, 0, 0, 1, 1, 0, 2, 0, 0, 0, 2, 0, 3, 0, 0, 0, 3, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 4, 0, 8, 0, 0, 0, 0, 0, 9, 0, 0, 0, 6, 0, 10, 0, 0, 0, 8, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 8, 0, 15, 0, 0, 0, 0, 0, 16, 0, 0, 0, 12, 0, 18, 0, 0, 0, 0, 0, 16, 0, 0, 0, 12, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0, 0, 16
Offset: 1

Views

Author

Keywords

Comments

See A164823 for explanatory comment and the definition of "cos(x) mod j".
It appears that a(n) = 0 for all n >= 1 other than n = 4 and n = any prime >= 5. Also, a(n) is even for all primes of the form 4m+3, with m >= 1, since, referring to the triangle in A165609, if c mod n is nonexistent then so is -c mod n.

Crossrefs

Extensions

Comment corrected by Christopher Hunt Gribble, Sep 25 2009
Showing 1-6 of 6 results.