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.

Showing 1-2 of 2 results.

A121878 a(1)=1. a(n) = the smallest positive integer not occurring earlier in the sequence such that a(n-1)+a(n) is squarefree.

Original entry on oeis.org

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

Views

Author

Leroy Quet, Aug 31 2006

Keywords

Comments

Inverse: A167905; A167904(n) = a(a(n)). [Reinhard Zumkeller, Nov 15 2009]
Conjectured to be a permutation of the natural numbers. - Derek Orr, Jun 01 2015

Examples

			9,10,11,12,... are the positive integers not occurring among the first 8 terms of the sequence. a(8) + 9 = 16, which is not squarefree. a(8) + 10 = 17, which is squarefree. So a(9) = 10.
		

Crossrefs

Cf. A167907, A075380. [Reinhard Zumkeller, Nov 15 2009]

Programs

  • Mathematica
    f[s_] := Block[{k = 1},While[MemberQ[s, k] || Max @@ Last /@ FactorInteger[(s[[ -1]] + k)] > 1, k++ ]; Append[s, k]]; Nest[f, {1}, 75] (* Ray Chandler, Sep 06 2006 *)
  • PARI
    v=[1];n=1;while(n<100,if(issquarefree(v[#v]+n)&&!vecsearch(vecsort(v),n),v=concat(v,n);n=0);n++);v \\ Derek Orr, Jun 01 2015

Extensions

Extended by Ray Chandler, Sep 06 2006

A167903 A075380(n) + A075380(n+1).

Original entry on oeis.org

4, 8, 9, 12, 18, 12, 8, 18, 25, 20, 16, 20, 25, 32, 40, 45, 40, 32, 36, 40, 44, 45, 36, 40, 50, 54, 60, 63, 60, 56, 60, 63, 64, 72, 75, 72, 75, 76, 75, 80, 84, 88, 92, 96, 99, 92, 88, 90, 92, 99, 104, 108, 112, 116, 117, 112, 116, 125, 124, 117, 108, 112, 124, 132, 135, 132
Offset: 1

Views

Author

Reinhard Zumkeller, Nov 15 2009

Keywords

Comments

A008966(a(n)) = 0 by definition of A075380.

Crossrefs

Cf. A167907.
Showing 1-2 of 2 results.