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 21-30 of 50 results. Next

A240877 Sum of the denominators of the Farey series of order n (A006843).

Original entry on oeis.org

1, 2, 4, 10, 18, 38, 50, 92, 124, 178, 218, 328, 376, 532, 616, 736, 864, 1136, 1244, 1586, 1746, 1998, 2218, 2724, 2916, 3416, 3728, 4214, 4550, 5362, 5602, 6532, 7044, 7704, 8248, 9088, 9520, 10852, 11536, 12472, 13112, 14752, 15256, 17062, 17942, 19022, 20034, 22196, 22964, 25022, 26022
Offset: 0

Views

Author

Robert G. Wilson v, Apr 13 2014

Keywords

Comments

All terms except a(0) are even.

Crossrefs

Programs

  • Mathematica
    Farey[n_] := Union[ Flatten[ Join[{0}, Table[a/b, {b, n}, {a, b}]]]]; Table[ Total[ Denominator[ Farey[ n]]], {n, 0, 50}]
  • PARI
    first(n)=my(s=1,v=vector(n+1)); v[1]=1; forfactored(k=1,n, v[k[1]+1]=s+=k[1]*eulerphi(k)); v \\ Charles R Greathouse IV, Dec 27 2017

Formula

a(n) = 1 + Sum_{k=1..n} k*A000010(k). - Isaac Saffold, Dec 03 2017
a(n) = 1 + A011755(n). - Michel Marcus, Dec 23 2017
a(n) ~ c * n^3, where c = 2/Pi^2 (A185197). - Amiram Eldar, Dec 01 2023

A359690 Number of vertices in a regular drawing of a complete bipartite graph where the vertex positions on each part equal the Farey series of order n.

Original entry on oeis.org

5, 13, 69, 289, 1971, 3997, 20371, 45751, 120957, 205299, 629847, 897801, 2334409, 3461459, 5517131, 8468061
Offset: 1

Views

Author

Keywords

Comments

The number of vertices along each edge is A005728(n). No formula for a(n) is known.

Crossrefs

Cf. A359691 (crossings), A359692 (regions), A359693 (edges), A359694 (k-gons), A005728, A331755, A359654, A358887, A358883, A006842, A006843.

Formula

a(n) = A359693(n) - A359692(n) + 1 by Euler's formula.

A358883 The number of vertices in a Farey diagram of order (n,n).

Original entry on oeis.org

5, 37, 313, 1253, 4977, 11253, 31393, 61409, 125525, 212785, 407757, 609361, 1059497, 1541005, 2328621, 3282329, 5006113, 6538721, 9545621, 12352197
Offset: 1

Views

Author

Keywords

Comments

See the linked references for further details.
The first diagram where not all edge points are connected is n = 3. For example a line connecting points (0,1/3) and (1/3,0) has equation 3*y - 6*x - 1 = 0, and as one of the x or y coefficients is greater than n (3 in this case) the line is not included.

Crossrefs

Cf. A358882 (regions), A358884 (edges), A358885 (k-gons), A006842, A006843, A005728, A358887.
See A358298 for definition of Farey diagram Farey(m,n).
The Farey Diagrams Farey(m,n) are studied in A358298-A358307 and A358882-A358885, the Completed Farey Diagrams of order (m,n) in A358886-A358889.

Formula

a(n) = A358884(n) - A358882(n) + 1 by Euler's formula.

A359694 Irregular table read by rows: T(n,k) is the number of k-gons, k>=3, in a regular drawing of a complete bipartite graph where the vertex positions on each part equal the Farey series of order n.

Original entry on oeis.org

2, 10, 2, 70, 24, 218, 160, 4, 1254, 1068, 148, 16, 2254, 2414, 252, 26, 10082, 11760, 1980, 266, 12, 21410, 25958, 5096, 648, 36, 4, 53422, 68208, 14360, 1980, 168, 20, 86986, 118922, 24028, 3056, 248, 12, 0, 2, 255678, 346676, 84344, 12774, 1132, 110, 4, 2, 365674, 493530, 119820, 18600, 1624, 112, 4
Offset: 1

Views

Author

Keywords

Comments

The number of vertices along each edge is A005728(n). No formula is known.
See A359692 for other images of the graph.

Examples

			The table begins:
2;
10, 2;
70, 24;
218, 160, 4;
1254, 1068, 148, 16;
2254, 2414, 252, 26;
10082, 11760, 1980, 266, 12;
21410, 25958, 5096, 648, 36, 4;
53422, 68208, 14360, 1980, 168, 20;
86986, 118922, 24028, 3056, 248, 12, 0, 2;
255678, 346676, 84344, 12774, 1132, 110, 4, 2;
365674, 493530, 119820, 18600, 1624, 112, 4;
917478, 1244492, 334096, 57080, 5700, 478, 16, 4;
1335398, 1862666, 495536, 82642, 8096, 676, 24, 6;
2107042, 2989864, 788340, 128378, 12536, 932, 52, 4;
3195474, 4557430, 1230300, 205352, 20516, 1664, 80, 4;
.
.
		

Crossrefs

Cf. A359690 (vertices), A359691 (crossings), A359692 (regions), A359693 (edges), A005728, A290131, A359653, A358886, A358882, A006842, A006843.

Formula

Sum of row n = A359692(n).

A177407 Form triangle of weighted Farey fractions; read denominators by rows.

Original entry on oeis.org

1, 1, 1, 3, 3, 1, 1, 5, 7, 3, 9, 9, 3, 7, 5, 1, 1, 7, 11, 5, 17, 19, 7, 17, 13, 3, 5, 7, 9, 27, 27, 9, 7, 5, 3, 13, 17, 7, 19, 17, 5, 11, 7, 1, 1, 9, 15, 7, 25, 29, 11, 27, 21, 5, 9, 13, 17, 53, 55, 19, 15, 11, 7, 31, 41, 17, 47, 43, 13, 29, 19, 3, 11, 13, 5, 17, 19, 7, 23, 25, 9
Offset: 0

Views

Author

N. J. A. Sloane, Dec 10 2010

Keywords

Comments

Start with the list of fractions 0/1, 1/1 and repeatedly insert the weighted mediants (2a+c)/(2b+d) and (a+2c)/(b+2d) between every pair of adjacent elements a/b and c/d of the list. The fractions are to be reduced before the insertion step.

Examples

			Triangle begins:
  0 1
  - -
  1 1
.
  0 1 2 1
  - - - -
  1 3 3 1
.
  0 1 2 1 4 5 2 5 4 1
  - - - - - - - - - -
  1 5 7 3 9 9 3 7 5 1
		

References

  • James Propp, Posting to the Math Fun Mailing List, Dec 10 2010.

Crossrefs

Extensions

a(44)-a(80) and some corrected terms from Nathaniel Johnston, Apr 12 2011

A359693 Number of edges in a regular drawing of a complete bipartite graph where the vertex positions on each part equal the Farey series of order n.

Original entry on oeis.org

6, 24, 162, 670, 4456, 8942, 44470, 98902, 259114, 438552, 1330566, 1897164, 4893752, 7246502, 11544278, 17678880
Offset: 1

Views

Author

Keywords

Comments

The number of vertices along each edge is A005728(n). No formula for a(n) is known.
See A359690 and A359692 for images of the graph.

Crossrefs

Cf. A359690 (vertices), A359691 (crossings), A359692 (regions), A359694 (k-gons), A005728, A290132, A359655, A358888, A358884, A006842, A006843.

Formula

a(n) = A359690(n) + A359692(n) - 2*A005728(n) + 1 by Euler's formula.

A177405 Form triangle of weighted Farey fractions; read numerators by rows.

Original entry on oeis.org

0, 1, 0, 1, 2, 1, 0, 1, 2, 1, 4, 5, 2, 5, 4, 1, 0, 1, 2, 1, 4, 5, 2, 5, 4, 1, 2, 3, 4, 13, 14, 5, 4, 3, 2, 9, 12, 5, 14, 13, 4, 9, 6, 1, 0, 1, 2, 1, 4, 5, 2, 5, 4, 1, 2, 3, 4, 13, 14, 5, 4, 3, 2, 9, 12, 5, 14, 13, 4, 9, 6, 1, 4, 5, 2, 7, 8, 3, 10, 11
Offset: 0

Views

Author

N. J. A. Sloane, Dec 10 2010

Keywords

Comments

Start with the list of fractions 0/1, 1/1 and repeatedly insert the weighted mediants (2a+c)/(2b+d) and (a+2c)/(b+2d) between every pair of adjacent elements a/b and c/d of the list. The fractions are to be reduced before the insertion step.
James Propp asks: Does every fraction between 0 and 1 with odd denominator appear in the triangle?

Examples

			Triangle begins:
0 1
- -
1 1
0 1 2 1
- - - -
1 3 3 1
0 1 2 1 4 5 2 5 4 1
- - - - - - - - - -
1 5 7 3 9 9 3 7 5 1
0 1 .2 1 .4 .5 2 .5 .4 1 2 3 4 13 14 5 4 3 2 .9 12 5 14 13 4 .9 6 1
- - -- - -- -- - -- -- - - - - -- -- - - - - -- -- - -- -- - -- - -
1 7 11 5 17 19 7 17 13 3 5 7 9 27 27 9 7 5 3 13 17 7 19 17 5 11 7 1
		

References

  • James Propp, Posting to the Math Fun Mailing List, Dec 10 2010.

Crossrefs

Programs

  • Mathematica
    Mma code from James Propp:
            Lengthen[L_] :=
             Module[{i, M}, M = Table[0, {3 Length[L]}];
              M[[1]] = Numerator[L[[1]]]/(2 + Denominator[L[[1]]]);
              M[[2]] = 2*Numerator[L[[1]]]/(1 + 2 Denominator[L[[1]]]);
              For[i = 1, i < Length[L], i++, M[[3 i]] = L[[i]];
               M[[3 i + 1]] = (2 Numerator[L[[i]]] +
                   Numerator[L[[i + 1]]])/(2 Denominator[L[[i]]] +
                   Denominator[L[[i + 1]]]);
               M[[3 i + 2]] = (Numerator[L[[i]]] +
                   2 Numerator[L[[i + 1]]])/(Denominator[L[[i]]] +
                   2 Denominator[L[[i + 1]]])]; M[[3 Length[L]]] = L[[Length[L]]];
               Return[M]]
            WF[n_] := WF[n] = If[n == 0, {1}, Lengthen[WF[n - 1]]]

Extensions

a(45)-a(80) and some corrected terms from Nathaniel Johnston, Apr 12 2011

A213544 Sum of numerators of Farey Sequence of order n.

Original entry on oeis.org

1, 2, 5, 9, 19, 25, 46, 62, 89, 109, 164, 188, 266, 308, 368, 432, 568, 622, 793, 873, 999, 1109, 1362, 1458, 1708, 1864, 2107, 2275, 2681, 2801, 3266, 3522, 3852, 4124, 4544, 4760, 5426, 5768, 6236, 6556, 7376, 7628, 8531, 8971, 9511, 10017, 11098, 11482
Offset: 1

Views

Author

Anunay Kulshrestha, Jun 14 2012

Keywords

Examples

			For n = 3, the Farey Sequence is 0/1, 1/3, 1/2, 2/3, 1/1. Thus a(3) = 0 + 1 + 1 + 2 + 1 = 5.
		

Crossrefs

Similar to A133404 and A191607.
Partial sums of A023896.

Programs

  • Maple
    with(numtheory):
    b:= n-> `if`(n=1, 1, n*phi(n)/2):
    a:= proc(n) option remember; b(n) +`if`(n>1, a(n-1), 0) end:
    seq(a(n), n=1..60);  # Alois P. Heinz, Jun 14 2012
  • Mathematica
    Farey[n_] := Union[ Flatten[ Join[{0}, Table[a/b, {b, n}, {a, b}]]]]; Table[ Total[ Numerator[ Farey[ n]]], {n, 0, 53}] (* Robert G. Wilson v, Apr 15 2014 *)
    a[n_] := Sum[If[CoprimeQ[j, k], j, 0], {k, 1, n}, {j, 1, k}]; Table[a[n], {n, 1, 48}] (* Jean-François Alcover, Dec 29 2014 *)
    Table[Total[Numerator[FareySequence[n]]],{n,50}] (* Harvey P. Dale, Apr 21 2025 *)

Formula

a(n) = Sum_{k=1..n} A023896(k).
a(n) = A240877(n)/2. - Robert G. Wilson v, Apr 15 2014
a(n) ~ n^3/Pi^2 - Jean-François Alcover, Dec 29 2014
a(n) = (A011755(n)+1)/2. - Chai Wah Wu, Apr 04 2022

A358884 The number of edges in a Farey diagram of order (n,n).

Original entry on oeis.org

8, 92, 816, 3276, 13040, 29452, 82128, 160656, 328212, 556040, 1065660, 1592368, 2768168, 4026972, 6083804, 8572272, 13075848, 17078512, 24932940, 32266036
Offset: 1

Views

Author

Keywords

Comments

See the linked references for further details.
The first diagram where not all edge points are connected is n = 3. For example a line connecting points (0,1/3) and (1/3,0) has equation 3*y - 6*x - 1 = 0, and as one of the x or y coefficients is greater than n (3 in this case) the line is not included.

Crossrefs

Cf. A358882 (regions), A358883 (vertices), A358885 (k-gons), A006842, A006843, A005728, A358888.
See A358298 for definition of Farey diagram Farey(m,n).
The Farey Diagrams Farey(m,n) are studied in A358298-A358307 and A358882-A358885, the Completed Farey Diagrams of order (m,n) in A358886-A358889.

Formula

a(n) = A358882(n) + A358883(n) - 1 by Euler's formula.

A359653 Number of regions formed in a square with edge length 1 by straight line segments when connecting the internal edge points that divide the sides into segments with lengths equal to the Farey series of order n to the equivalent points on the opposite side of the square.

Original entry on oeis.org

1, 4, 96, 728, 7840, 17744, 104136, 246108, 681704, 1187200, 3719496, 5396692, 14149896
Offset: 1

Views

Author

Keywords

Comments

The number of points internal to each edge is given by A005728(n) - 2.

Crossrefs

Cf. A359654 (vertices), A359655 (edges), A359656 (k-gons), A005728, A358886, A358882, A355798, A358948, A006842, A006843.

Formula

a(n) = A359655(n) - A359654(n) + 1 by Euler's formula.
Previous Showing 21-30 of 50 results. Next