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.

A378912 Irregular triangle read by rows: row n lists all positive m such that sigma(m) divides n, where sigma is the sum-of-divisors function (A000203).

Original entry on oeis.org

1, 1, 1, 2, 1, 3, 1, 1, 2, 5, 1, 4, 1, 3, 7, 1, 2, 1, 1, 1, 2, 3, 5, 6, 11, 1, 9, 1, 4, 13, 1, 2, 8, 1, 3, 7, 1, 1, 2, 5, 10, 17, 1, 1, 3, 19, 1, 2, 4, 1, 1, 1, 2, 3, 5, 6, 7, 11, 14, 15, 23, 1, 1, 9, 1, 2, 1, 3, 4, 12, 13, 1, 1, 2, 5, 8, 29, 1, 16, 25, 1, 3, 7, 21, 31
Offset: 1

Views

Author

Paolo Xausa, Dec 10 2024

Keywords

Examples

			Triangle begins:
  n\k|  1   2   3   4   5   6 ...
  -------------------------------
   1 |  1;
   2 |  1;
   3 |  1,  2;
   4 |  1,  3;
   5 |  1;
   6 |  1,  2,  5;
   7 |  1,  4;
   8 |  1,  3,  7;
   9 |  1,  2;
  10 |  1;
  11 |  1;
  12 |  1,  2,  3,  5,  6, 11;
  13 |  1,  9;
  14 |  1,  4, 13;
  15 |  1,  2,  8;
  16 |  1,  3,  7;
  17 |  1;
  18 |  1,  2,  5, 10, 17;
  19 |  1;
  20 |  1,  3, 19;
  ...
		

Crossrefs

Cf. A074754 (row lengths), A319068 (right border), A378913 (row sums).
Cf. A000203.

Programs

  • Mathematica
    With[{nmax = 50}, Table[PositionIndex[Divisible[n, #[[;; n]]]][True], {n, nmax}] & [DivisorSigma[1, Range[nmax]]]]
  • PARI
    row(n) = select(x->(!(n % sigma(x))), [1..n]); \\ Michel Marcus, Dec 11 2024

Formula

T(n,k) <= n (see A319068).

A070610 Number of positive integers k such that sigma(k) divides sigma(n).

Original entry on oeis.org

1, 2, 2, 2, 3, 6, 3, 3, 2, 5, 6, 5, 3, 10, 10, 3, 5, 4, 3, 8, 5, 9, 10, 12, 3, 8, 5, 8, 5, 18, 5, 4, 13, 7, 13, 4, 2, 12, 8, 10, 8, 19, 3, 15, 6, 18, 13, 7, 3, 5, 18, 5, 7, 21, 18, 21, 7, 10, 12, 27, 4, 19, 6, 2, 15, 26, 3, 13, 19, 26, 18, 6, 2, 7, 7, 8, 19, 27, 7, 9, 2, 13, 15, 14, 13, 9
Offset: 1

Views

Author

Benoit Cloitre, May 13 2002

Keywords

Crossrefs

Programs

  • PARI
    for(n=1,150,print1(sum(i=1,10*n,if((sigma(n))%(sigma(i)),0,1)),","))
    
  • PARI
    A070610(n) = { my(s=sigma(n)); sum(k=1, s, !(s%sigma(k))); }; \\ Antti Karttunen, Nov 17 2017

Formula

a(n) = A074754(A000203(n)). - Antti Karttunen, Nov 17 2017

Extensions

Offset corrected, name edited by Antti Karttunen, Nov 17 2017
Showing 1-2 of 2 results.