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.

A349779 Pairs of integers i,j such that i+prime(i) and j+prime(j) are a pair of amicable numbers.

Original entry on oeis.org

41, 51, 99525, 104283, 280899, 295869, 18378754, 21937204, 52084243, 53107499, 163148785, 166346021, 179162279, 183252051, 212063283, 244033955, 3731366783, 4226663091, 7134801326, 7818930716, 10469380661, 12074408463, 12445587194, 12667334246, 16055012737, 17258948163
Offset: 1

Views

Author

Michel Marcus, Nov 30 2021

Keywords

Examples

			41 + prime(41) = 41 + 179 = 220, 51 + prime(51) = 51 + 233 = 284, and (220, 284) is an amicable pair.
		

Crossrefs

Programs

  • Python
    from sympy import nextprime, divisor_sigma
    d = dict()
    j, p = 0, 0
    while True:
        j, p = j+1, nextprime(p)
        n = j+p
        a = divisor_sigma(n)-n
        d[(n, a)] = j
        if (a, n) in d:
            print(d[(a, n)], j) # Martin Ehrenstein, Dec 02 2021

Extensions

a(7)-a(8) from Amiram Eldar, Nov 30 2021
a(9)-a(16) from Michel Marcus, Dec 01 2021
a(17)-a(26) from Martin Ehrenstein, Dec 03 2021