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

A358305 Triangle read by rows: T(n,k) (n>=0, 0 <= k <= n) = number of decreasing lines defining the Farey diagram Farey(n,k) of order (n,k).

Original entry on oeis.org

0, 0, 2, 0, 5, 10, 0, 9, 19, 32, 0, 14, 27, 47, 66, 0, 20, 40, 68, 96, 134, 0, 27, 51, 85, 118, 167, 204, 0, 35, 68, 112, 156, 217, 267, 342, 0, 44, 82, 137, 187, 261, 318, 408, 482, 0, 54, 103, 166, 229, 317, 384, 490, 581, 692, 0, 65, 120, 196, 266, 366, 441, 564, 664, 794, 904
Offset: 0

Views

Author

Keywords

Examples

			The full array T(n,k), n >= 0, k>= 0, begins:
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
0, 2, 5, 9, 14, 20, 27, 35, 44, 54, 65, 77, 90, ...
0, 5, 10, 19, 27, 40, 51, 68, 82, 103, 120, 145, ...
0, 9, 19, 32, 47, 68, 85, 112, 137, 166, 196, 235, ...
0, 14, 27, 47, 66, 96, 118, 156, 187, 229, 266, ...
0, 20, 40, 68, 96, 134, 167, 217, 261, 317, 366, ...
0, 27, 51, 85, 118, 167, 204, 267, 318, 384, 441, ...
		

Crossrefs

Cf. A358298.
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.

Programs

  • Maple
    A005728 := proc(n) 1+add(numtheory[phi](i), i=1..n) ; end proc: # called F_n in the paper
    Amn:=proc(m,n) local a,i,j; # A331781 or equally A333295. Diagonal is A018805.
    a:=0; for i from 1 to m do for j from 1 to n do
    if igcd(i,j)=1 then a:=a+1; fi; od: od: a; end;
    DFD:=proc(m,n) local d,t1,u,v; global A005728, Amn;
    t1:=0; for u from 1 to m do for v from 1 to n do
    d:=igcd(u,v); if d>=1 then t1:=t1 + (u+v)*numtheory[phi](d)/d; fi; od: od:
    t1; end;
    for m from 0 to 8 do lprint([seq(DFD(m,n),n=0..20)]); od:
  • Mathematica
    T[n_, k_] := Sum[d = GCD[u, v]; If[d >= 1, (u+v)*EulerPhi[d]/d, 0], {u, 1, n}, {v, 1, k}];
    Table[T[n, k], {n, 0, 10}, {k, 0, n}] // Flatten (* Jean-François Alcover, Apr 18 2023 *)

A358306 Second row of array in A358304.

Original entry on oeis.org

0, 5, 10, 19, 27, 40, 51, 68, 82, 103, 120, 145, 165, 194, 217, 250, 276, 313, 342, 383, 415, 460, 495, 544, 582, 635, 676, 733, 777, 838, 885, 950, 1000, 1069, 1122, 1195, 1251, 1328, 1387, 1468, 1530, 1615, 1680, 1769, 1837, 1930, 2001, 2098, 2172, 2273, 2350, 2455, 2535, 2644, 2727, 2840, 2926, 3043, 3132, 3253, 3345
Offset: 0

Views

Author

Keywords

Crossrefs

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.
Previous Showing 21-22 of 22 results.