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.

A276374 Numbers n such that A240024(n) = A002808(n).

Original entry on oeis.org

5, 6, 8, 13, 14, 24, 26, 31, 32, 34, 51, 54, 57, 62, 69, 82, 83, 93, 99, 113, 114, 119, 125, 132, 133, 139, 143, 145, 151, 161, 165, 181, 182, 192, 195, 212, 217, 219, 224, 233, 266, 282, 293, 295, 304, 311, 312, 318, 325, 338, 354, 364, 369, 375, 376, 382
Offset: 1

Views

Author

Peter Kagey, Aug 31 2016

Keywords

Crossrefs

Programs

  • Haskell
    a276374 n = a276374_list !! (n - 1)
    a276374_list = filter (\i -> a240024 i == a002808 i) [1..]
  • Mathematica
    c = Select[Range@ 500, CompositeQ]; a = {1, 4}; Do[k = 6; While[Or[PrimeQ@ k, MemberQ[a, k], CoprimeQ[a[[i - 1]], k]], k++]; AppendTo[a, k], {i, 3, Length@ c}]; Flatten@ Position[Union /@ Transpose@ {a, c}, w_ /; Length@ w == 1] (* Michael De Vlieger, Sep 01 2016 *)