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-2 of 2 results.

A273724 Place n equally-spaced points around a circle, labeled 0,1,2,...,n-1. For each i = 0..n-1 such that 3i != i mod n, draw an (undirected) chord from i to (3i mod n). Then a(n) is the total number of distinct chords.

Original entry on oeis.org

0, 0, 0, 2, 1, 4, 4, 6, 3, 8, 8, 10, 9, 12, 12, 14, 11, 16, 16, 18, 17, 20, 20, 22, 19, 24, 24, 26, 25, 28, 28, 30, 27, 32, 32, 34, 33, 36, 36, 38, 35, 40, 40, 42, 41, 44, 44, 46, 43, 48, 48, 50, 49, 52, 52, 54, 51, 56, 56, 58, 57, 60, 60, 62, 59, 64, 64, 66, 65, 68, 68, 70, 67, 72, 72, 74, 73, 76, 76, 78, 75, 80, 80
Offset: 0

Views

Author

Kival Ngaokrajang, May 28 2016

Keywords

Crossrefs

Cf. A117571 (if 3i is changed to 2i), A274462 (if 3i is changed to 4i).

Formula

a(n) = n-1 if n>0 is odd, n-2 if n == +-2 (mod 8), n-3 if n == 4 (mod 8), and n-5 if n == 0 (mod 8). These formulas are easily established by observing that the chord at i is missing if 2i == 0 mod n, and the chords starting at i and at 3i coincide if 8i == 0 mod n. The formulas then imply that the g.f. is 4+x^2/(1-x)^2-(4+x^2+2*x^4+x^6)/(1-x^8), which can be rewritten as (5*x^63*x^5+2*x^4+3*x^2-x+2)*x^3/((1-x)*(1-x^8)). (This g.f. was conjectured by Colin Barker.) - Brooke Logan and N. J. A. Sloane, Jun 23 2016
a(n) = a(n-1)+a(n-8)-a(n-9) for n>9. - Colin Barker, May 29 2016 (This follows from the above g.f. - Brooke Logan and N. J. A. Sloane)

Extensions

Definition edited by N. J. A. Sloane, Jun 23 2016

A274516 Place n equally-spaced points around a circle, labeled 0,1,2,...,n-1. For each i = 0..n-1 such that 5i != i mod n, draw an (undirected) chord from i to (5i mod n). Then a(n) is the total number of distinct chords.

Original entry on oeis.org

0, 0, 0, 1, 0, 4, 2, 6, 2, 7, 8, 10, 4, 12, 12, 13, 10, 16, 14, 18, 16, 19, 20, 22, 10, 24, 24, 25, 24, 28, 26, 30, 26, 31, 32, 34, 28, 36, 36, 37, 34, 40, 38, 42, 40, 43, 44, 46, 34, 48, 48, 49, 48, 52, 50, 54, 50, 55, 56, 58, 52, 60, 60
Offset: 0

Views

Author

Brooke Logan, Jun 25 2016

Keywords

Crossrefs

If 5i in the definition is replaced by 2i we get A117571, if 5i is replaced by 3i we get A273724, and if 5i is replaced by 4i we get A274462.

Formula

We argue as in A273724. There are n-1 choices for i.
For nontrivial chords we need i != 5i mod n, which means 4i != 0 mod n, and so when n == 0 mod 4 we must subtract 3 from n-1 and when n == 2 mod 4 we must subtract 1 from n-1.
A chord occurs twice (but must be counted only once) when j==5i mod n and i==5j mod n, thus when 24i == 0 mod n. If n == +/- 3, +/- 9 mod 24 then subtract another 1, if n == +/- 6, +/- 8 mod 24 then subtract another 2, if n==12 mod 24 subtract 4, and if n == 0 mod 24 then subtract another 10.
Putting the pieces together, we obtain the g.f.
x^2/(1-x)^2-(3+x^2)/(1-x^4)-(x^3+x^9+x^15+x^21)/(1-x^24)-2(x^6+x^8+x^16+x^18)/(1-x^24)-(4*x^12+10)/(1-x^24)+13.
The g.f. can also be written as
(14*x^25 - 12*x^24 + 2*x^23 + x^22 + 3*x^21 - 2*x^20 + 2*x^19 + 4*x^17 - x^16 + x^15 + 8*x^13 - 6*x^12 + 2*x^11 + x^10 + 3*x^9 - 2*x^8 + 2*x^7 + 4*x^5 - x^4 + x^3 + 2*x - 2) / ((1-x)*(1-x^24)).
Showing 1-2 of 2 results.