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.

A127397 a(0)=0; a(n) = smallest positive integer not occurring earlier in the sequence such that a(n-1)+a(n) = j^k, j = any positive integer, k = any integer >= 2.

Original entry on oeis.org

0, 1, 3, 5, 4, 12, 13, 14, 2, 6, 10, 15, 17, 8, 19, 30, 34, 47, 53, 11, 16, 9, 7, 18, 31, 33, 48, 52, 29, 20, 44, 37, 27, 22, 42, 39, 25, 24, 40, 41, 23, 26, 38, 43, 21, 28, 36, 45, 55, 66, 59, 62, 63, 58, 67, 54, 46, 35, 65, 56, 69, 75, 50, 71, 57, 64, 61, 60, 68, 32, 49, 51, 70
Offset: 0

Views

Author

Leroy Quet, Jan 12 2007

Keywords

Crossrefs

Programs

  • Mathematica
    f[n_] := n == 1 || GCD @@ Last /@ FactorInteger[n] > 1;g[l_List] := Block[{k = 1},While[MemberQ[l, k] || ! f[k + l[[ -1]]], k++ ];Append[l, k]];Nest[g, {0}, 73] (* Ray Chandler, Jan 22 2007 *)

Extensions

Extended by Ray Chandler, Jan 22 2007