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.

A371420 Greater member of Carmichael's variant of amicable pair: numbers k < m such that s(k) = m and s(m) = k, where s(k) = A371418(k).

Original entry on oeis.org

14, 62, 124, 189, 254, 508, 2032, 16382, 32764, 131056, 262142, 524284, 524224, 1048574, 2097148, 2097136, 8388592, 8388544, 33554368, 536866816, 2147479552, 4294967294, 8589934588, 34359738352, 34359672832, 137438953408
Offset: 1

Views

Author

Amiram Eldar, Mar 23 2024

Keywords

Comments

The terms are ordered according to their lesser counterparts (A371419).

Examples

			14 is a term since A371418(14) = 12 < 14, and A371418(12) = 14.
		

Crossrefs

Programs

  • Mathematica
    r[n_] := n/FactorInteger[n][[1, 1]]; s[n_] := r[DivisorSigma[1, n]]; seq = {}; Do[m = s[n]; If[m > n && s[m] == n, AppendTo[seq, m]], {n, 1, 10^6}]; seq
  • PARI
    f(n) = {my(s = sigma(n)); if(s == 1, 1, s/factor(s)[1, 1]);}
    lista(nmax) = {my(m); for(n = 1, nmax, m = f(n); if(m > n && f(m) == n, print1(m, ", ")));}