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.

A251411 Numbers k such that A098550(k) = k.

Original entry on oeis.org

1, 2, 3, 4, 12, 50, 86
Offset: 1

Views

Author

N. J. A. Sloane, Dec 02 2014

Keywords

Comments

There is a strong conjecture that there are no further terms. See the discussion in the comments in A098550.

References

  • L. Edson Jeffery, Posting to Sequence Fans Mailing List, Nov 30 2014.

Crossrefs

Programs

  • Mathematica
    max = 100;
    f[lst_] := Block[{k = 4}, While[GCD[lst[[-2]], k] == 1 || GCD[lst[[-1]], k] > 1 || MemberQ[lst, k], k++]; Append[lst, k]];
    A098550 = Nest[f, {1, 2, 3}, max - 3];
    Select[Transpose[{Range[max], A098550}], #[[1]] == #[[2]]&][[All, 1]] (* Jean-François Alcover, Sep 05 2018, after Robert G. Wilson v in A098550 *)
  • Python
    from math import gcd
    A251411_list, l1, l2, s, b = [1,2,3], 3, 2, 4, {}
    for n in range(4,10**4):
        i = s
        while True:
            if not i in b and gcd(i,l1) == 1 and gcd(i,l2) > 1:
                l2, l1, b[i] = l1, i, 1
                while s in b:
                    b.pop(s)
                    s += 1
                if i == n:
                    A251411_list.append(n)
                break
            i += 1 # Chai Wah Wu, Dec 03 2014