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.

A071977 Triangle in which first row is {1}; to get n-th row take first n numbers greater than last number in previous row which are relatively prime to n.

Original entry on oeis.org

1, 3, 5, 7, 8, 10, 11, 13, 15, 17, 18, 19, 21, 22, 23, 25, 29, 31, 35, 37, 41, 43, 44, 45, 46, 47, 48, 50, 51, 53, 55, 57, 59, 61, 63, 65, 67, 68, 70, 71, 73, 74, 76, 77, 79, 81, 83, 87, 89, 91, 93, 97, 99, 101, 103, 104, 105, 106, 107, 108, 109, 111, 112, 113, 114, 115
Offset: 1

Views

Author

Amarnath Murthy, Jun 18 2002

Keywords

Examples

			Triangle begins 1; 3 5; 7 8 10; 11 13 15 17; 18 19 21 22 23; 25 29 31 35 37 41; ....
		

Crossrefs

Diagonals give A071978, A071979.

Programs

  • Haskell
    a071977 n k = a071977_tabl !! (n-1) !! (k-1)
    a071977_row n = a071977_tabl !! (n-1)
    a071977_tabl = f 1 [1..] where
       f k xs = ys : f (k+1) (dropWhile (<= last ys) xs) where
         ys  = take k $ filter ((== 1) . (gcd k)) xs
    -- Reinhard Zumkeller, Jan 18 2012
  • Mathematica
    a = {1}; k = 2; Do[i = 1; While[i < n + 1, If[ GCD[k, n] == 1, a = Append[a, k]; i++ ]; k++ ], {n, 2, 12}]; a

Extensions

Edited by Robert G. Wilson v, Jun 28 2002

A077166 Final terms of rows in A077164.

Original entry on oeis.org

2, 5, 10, 17, 23, 41, 50, 65, 79, 103, 115, 151, 165, 197, 226, 257, 275, 329, 349, 399, 436, 483, 507, 577, 608, 665, 706, 771, 801, 913, 945, 1009, 1063, 1135, 1186, 1291, 1329, 1409, 1474, 1573, 1615, 1763, 1807, 1905, 1988, 2083, 2131, 2275, 2332, 2457
Offset: 1

Views

Author

Amarnath Murthy, Oct 31 2002

Keywords

Comments

Apart from the first terms, identical to A071978. [From R. J. Mathar, Sep 20 2008]

Crossrefs

Extensions

Corrected and extended by Sascha Kurz, May 09 2004
Showing 1-2 of 2 results.