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.

A014454 Sum_{1<=k

Original entry on oeis.org

0, 1, 2, 5, 6, 21, 22, 73, 210, 1693, 1694, 2097, 2098, 12997, 21468, 174169, 174170, 1986237, 1986238, 10178833, 16875654, 246551437, 246551438, 2032266537, 3767596738, 45445808989, 260705796192, 2932954933753, 2932954933754, 5496591783573, 5496591783574
Offset: 1

Views

Author

Reinhard Zumkeller, Feb 12 2002

Keywords

Examples

			a(5) = gcd(1!,5!)+gcd(2!,3*4*5)+gcd(3!,4*5)+gcd(4!,5)=1+2+2+1 = 6.
		

Crossrefs

Cf. A000142.
Cf. A166350.

Programs

  • Haskell
    a014454 n = sum $ zipWith gcd kfs $ map (div nf) kfs
       where (nf:kfs) = reverse $ a166350_row n
    -- Reinhard Zumkeller, Nov 11 2013
  • PARI
    a(n) = sum(k=1, n-1, gcd(k!, n!/k!)); \\ Michel Marcus, Aug 04 2013