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-10 of 11 results. Next

A167904 A121878(A121878(n)).

Original entry on oeis.org

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

Views

Author

Reinhard Zumkeller, Nov 15 2009

Keywords

Comments

Permutation of positive integers;
a(A167906(n)) = A167906(n);
a(A167905(n)) = A167905(a(n)) = A121878(n).

A167906 Fixed points of permutations A121878, A167904, A167905.

Original entry on oeis.org

1, 2, 3, 4, 14, 17, 18, 19, 20, 21, 22, 35, 36, 37, 42, 44, 45, 46, 47, 48, 49, 63, 64, 65, 66, 67, 86, 89, 90, 91, 92, 93, 94, 107, 108, 109, 110, 111, 112, 123, 132, 134, 135, 136, 137, 146, 148, 161, 162, 168, 170, 171, 179, 180, 185, 186, 187, 189, 191, 192, 193
Offset: 1

Views

Author

Reinhard Zumkeller, Nov 15 2009

Keywords

Comments

A121878(a(n))=a(n); A167904(a(n))=a(n); A167905(a(n))=a(n).

Programs

  • PARI
    print1(1,", ");v=[1]; n=1; while(n<100, if(issquarefree(n+v[#v])&&!vecsearch(vecsort(v), n), v=concat(v, n);if(n==#v,print1(n,", ")); n=0); n++) \\ Derek Orr, Jun 09 2015

A167905 Inverse integer permutation to A121878.

Original entry on oeis.org

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

Views

Author

Reinhard Zumkeller, Nov 15 2009

Keywords

Comments

a(A167906(n)) = A167906(n);
a(A121878(n)) = A121878(a(n)) = n;
a(A167904(n)) = A167904(a(n)) = A121878(n).

A167907 A121878(n) + A121878(n+1).

Original entry on oeis.org

3, 5, 7, 10, 11, 13, 15, 17, 19, 21, 23, 26, 29, 30, 29, 30, 35, 37, 39, 41, 43, 46, 47, 51, 53, 51, 53, 57, 59, 61, 65, 67, 65, 66, 71, 73, 77, 78, 77, 82, 85, 83, 85, 89, 91, 93, 95, 97, 101, 102, 101, 105, 107, 109, 111, 113, 115, 118, 123, 122, 119, 122, 127, 129, 131
Offset: 1

Views

Author

Reinhard Zumkeller, Nov 15 2009

Keywords

Comments

A008966(a(n)) = 1 by definition of A121878.

Crossrefs

Cf. A167903.

A075380 Rearrangement of natural numbers so that the sum of two neighboring terms is not squarefree.

Original entry on oeis.org

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

Views

Author

Amarnath Murthy, Sep 22 2002

Keywords

Comments

Lexicographically earliest permutation of the natural numbers with the defining property; inverse: A167902; A167901(n) = a(a(n)). [Reinhard Zumkeller, Nov 15 2009]

Crossrefs

Cf. A075381.
Cf. A167903, A121878. [Reinhard Zumkeller, Nov 15 2009]

Programs

  • 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 08 2015

Extensions

More terms from David Wasserman, Jan 17 2005

A256271 a(1) = 1; for n > 1, a(n) is the smallest number not already in the sequence such that a(n)^2 + a(n-1)^2 is squarefree.

Original entry on oeis.org

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

Views

Author

Derek Orr, Jun 01 2015

Keywords

Comments

This is conjectured to be a permutation of the natural numbers.

Crossrefs

Programs

  • Mathematica
    a={1}; While[Length[a]<1000, e=Last@a; s = Select[ Complement[ Range@e, a], SquareFreeQ[e^2 + #^2]&, 1]; If[s!={}, s=s[[1]], s=e+1; While[ MemberQ[a, s] || !SquareFreeQ[ e^2 + s^2], s++]]; AppendTo[a, s]]; a (* first 1000 terms, Giovanni Resta, Jun 02 2015 *)
  • PARI
    v=[1];n=1;while(n<100,if(issquarefree(n^2+v[#v]^2)&&!vecsearch(vecsort(v),n),v=concat(v,n);n=0);n++);v

A167902 Inverse integer permutation to A075380.

Original entry on oeis.org

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

Views

Author

Reinhard Zumkeller, Nov 15 2009

Keywords

Comments

a(A075381(n)) = A075381(n);
a(A075380(n)) = A075380(a(n)) = n;
a(A167901(n)) = A167901(a(n)) = A121878(n).

A284049 a(n) is the smallest positive integer not already in the sequence such that a(n) + a(n-1) is a prime power, with a(1) = 1.

Original entry on oeis.org

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

Views

Author

Ilya Gutkovskiy, Mar 19 2017

Keywords

Comments

Conjectured to be a permutation of the natural numbers.

Examples

			a(8) = 9 because 1, 2, 3, 4, 5, 6 and 7 have already been used in the sequence, 7 + 8 = 15 is not prime power while 7 + 9 = 16 is a prime power.
		

Crossrefs

Programs

  • Maple
    N:= 100: # to get all terms before the first term > N
    S:= [$2..N]:
    a[1]:= 1: found:= true:
    for n from 2 while found do
      found:= false;
      for j from 1 to nops(S) do
        if ispp(a[n-1]+S[j]) then
          found:= true;
          a[n]:= S[j];
          S:= subsop(j=NULL,S);
          break
        fi
      od;
    od:
    seq(a[i],i=1..n-2); # Robert Israel, Apr 16 2017
  • Mathematica
    f[s_List] := Block[{k = 1, a = s[[-1]]}, While[MemberQ[s, k] || ! PrimePowerQ[a + k], k++]; Append[s, k]]; Nest[f, {1}, 80]

A258766 Fixed points in A256271.

Original entry on oeis.org

1, 2, 3, 26, 32, 34, 37, 49, 55, 62, 64, 74, 75, 76, 77, 164, 171, 189, 224, 273, 279, 280, 285, 303, 333, 345, 356, 363, 368, 382, 399, 411, 416, 422, 429, 430, 435, 441, 453, 470, 472, 483, 494, 524, 539, 561, 566, 579, 580, 585, 603, 609, 621, 644, 662, 666, 674, 693, 704, 715, 737, 771, 777, 794, 803
Offset: 1

Views

Author

Derek Orr, Jun 09 2015

Keywords

Comments

Numbers n such that A256271(n) = n.
From Robert Israel, Jul 16 2019: (Start)
A necessary condition for n to be in the sequence is that A256271(n)-n is even. When A256271(n) is even, A256271(n+1) must be odd; when A256271(n) is odd, A256271(n+1) may be either even or odd, but it appears that it is nearly always even.
The result is that we have long intervals where A256271(n)-n is even (e.g. 3369 to 22635), in which members of this sequence are relatively common, and long intervals where A256271(n)-n is odd (e.g. 22636 to 67110) which contain no members of this sequence. (End)

Crossrefs

Programs

  • Maple
    Res:= 1: count:= 1: v:= 1:
    Cands:= [$2..1000]:
    for n from 2 do
      found:= false;
      for j from 1 to nops(Cands) do
        if numtheory:-issqrfree(v + Cands[j]^2) then
          found:= true;
          if n = Cands[j] then Res:= Res, n; count:= count+1 fi;
          v:= Cands[j]^2;
          Cands:= subsop(j=NULL, Cands);
          break
        fi
      od;
      if not found then break fi;
    od:
    Res; # Robert Israel, Jul 16 2019
  • PARI
    print1(1,", ");v=[1]; n=1; while(#v<10^3, if(issquarefree(n^2+v[#v]^2)&&!vecsearch(vecsort(v), n), if(n==#v, print1(n, ", ")); n=0); n++)

A284048 a(n) is the smallest positive integer not already in the sequence such that a(n) + a(n-1) is a proper prime power (A246547), with a(1) = 1.

Original entry on oeis.org

1, 3, 5, 4, 12, 13, 14, 2, 6, 10, 15, 17, 8, 19, 30, 34, 47, 74, 7, 9, 16, 11, 21, 28, 36, 45, 76, 49, 32, 89, 39, 25, 24, 40, 41, 23, 26, 38, 43, 78, 50, 31, 18, 46, 35, 29, 20, 44, 37, 27, 22, 42, 79, 90, 153, 103, 66, 55, 70, 51, 77, 48, 33, 88, 81, 162, 94, 75, 53, 68, 57, 64, 61, 60, 65, 56, 69, 52, 73, 96, 147
Offset: 1

Views

Author

Ilya Gutkovskiy, Mar 19 2017

Keywords

Examples

			a(5) = 12 because 1, 3, 4 and 5 have already been used in the sequence, 4 + 2 = 6, 4 + 6 = 10, 4 + 7 = 11, 4 + 8 = 12, 4 + 9 = 13, 4 + 10 = 14 and 4 + 11 = 15 are not proper prime powers while 4 + 12 = 16 is a proper prime power.
		

Crossrefs

Programs

  • Maple
    N:= 2000: # to get all terms before the first where a(n)+a(n-1)>N
    PP:= {seq(seq(p^j, j =2..floor(log[p](N))),p = select(isprime,[2,seq(i,i=3..floor(sqrt(N)),2)]))}:
    PP:= sort(convert(PP,list)):
    V:= Vector(N,datatype=integer[1],1):
    A[1]:= 1; V[1]:= 0;
    for n from 2 do
      for pp in PP do
        t:= pp - A[n-1];
        if t > 0 and V[t] = 1 then
          A[n]:= t; V[t]:= 0; break
        fi;
      od;
      if not assigned(A[n]) then break fi
    od:
    seq(A[i],i=1..n-1); # Robert Israel, Apr 24 2017
  • Mathematica
    f[s_List] := Block[{k = 1, a = s[[-1]]}, While[MemberQ[s, k] || ! (PrimePowerQ[a + k] && PrimeOmega[a + k] > 1), k++];Append[s, k]]; Nest[f, {1}, 80]
Showing 1-10 of 11 results. Next