OFFSET
1,2
LINKS
Eric Weisstein's World of Mathematics, Farey Sequence.
EXAMPLE
Multiplication of n-th-order positive Farey fractions by n! gives the integer sequence A002088(n), for n>=1. Arrange them in rows:
1
1 2
2 3 4 6
6 8 12 16 18 24
The sum over row 4 is a(4)=84.
MATHEMATICA
Farey[n_] := Union[ Flatten[ Join[{0}, Table[a/b, {b, n}, {a, b}]]]]; Table[n!Plus @@ Farey[n], {n, 0, 20}] (* Robert G. Wilson v, Apr 06 2004 *)
PROG
(PARI) a(n) = my(list = List()); for (k=1, n, for (m=1, k, listput(list, m/k); ); ); n!*vecsum(Set(Vec(list))); \\ Michel Marcus, Mar 01 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Apr 03 2004
EXTENSIONS
More terms from Robert G. Wilson v, Apr 06 2004
More terms from Michel Marcus, Mar 01 2023
STATUS
approved