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.

A259917 All friendly numbers, with smallest member of each club listed just before the second-smallest one.

Original entry on oeis.org

6, 28, 30, 140, 80, 200, 40, 224, 12, 234, 84, 270, 66, 308, 78, 364, 102, 476, 496, 114, 532, 240, 600, 138, 644, 120, 672, 150, 700, 174, 812, 135, 819, 186, 868, 864, 936, 222, 1036, 246, 1148, 60, 1170, 258, 1204, 282, 1316, 560, 1400, 318, 1484, 1488, 330
Offset: 1

Views

Author

Jeppe Stig Nielsen, Jul 08 2015

Keywords

Comments

Run through all natural numbers i = 1, 2, 3, ... in order, and record for each the abundancy index sigma(i)/i. When we reach an abundancy that has been seen before, output first the "old" number which had that abundancy (unless that number has already been output earlier), and output secondly the current i.
By construction, no number can occur more than once in the sequence.
Friendly numbers that are not smallest in their club, appear in increasing order. Friendly numbers that are smallest in their club, appear just before the second-smallest member.
If we were to "forget" to output the smallest member in each club, we would get instead A095301.
Oppositely, if we output the smallest members only, we get instead A259918.
It is not known whether the number 10 belongs to this sequence.

Crossrefs

Terms form a subset of A069059.

Programs

  • PARI
    known=List(); for(i=1,10^5,a=sigma(i)/i; match=0; for(j=1,#known,if(known[j][1]==a,match=j;break())); if(match,old=known[match][2]; if(old,print1(old,", "); known[match]=[a,0]); print(i,","),listput(known,[a,i])))