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

A238091 A bisection of A136259.

Original entry on oeis.org

1, 4, 9, 18, 31, 33, 39, 56, 58, 94, 96, 103, 156, 239, 245, 253, 255, 257, 275, 277, 420, 610, 788, 790, 792, 1070, 1665, 1667, 1669
Offset: 1

Views

Author

N. J. A. Sloane, Feb 20 2014

Keywords

Crossrefs

Formula

a(n) = A136259(2*n-1). - Jinyuan Wang, Mar 04 2020

A238092 A bisection of A136259.

Original entry on oeis.org

3, 5, 13, 19, 32, 38, 55, 57, 59, 95, 97, 104, 157, 244, 249, 254, 256, 258, 276, 419, 609, 787, 789, 791, 1069, 1664, 1666, 1668, 1670
Offset: 1

Views

Author

N. J. A. Sloane, Feb 20 2014

Keywords

Crossrefs

Formula

a(n) = A136259(2*n). - Jinyuan Wang, Mar 04 2020

A270877 Numbers surviving a decaying sieve.

Original entry on oeis.org

1, 2, 4, 5, 6, 8, 13, 16, 17, 19, 22, 23, 24, 27, 28, 29, 32, 34, 38, 39, 40, 41, 42, 44, 49, 50, 51, 52, 56, 59, 60, 61, 64, 65, 68, 71, 72, 73, 74, 80, 89, 92, 94, 95, 96, 104, 107, 109, 113, 116, 118, 128, 131, 134, 137, 139, 142, 149, 151, 155
Offset: 1

Views

Author

Sean A. Irvine, Mar 24 2016

Keywords

Comments

In the normal sieve of Eratosthenes, for a given number p, we cross out all multiples of p; that is, p, p + p, p + p + p, .... In this decaying sieve, we cross out p, p + (p-1), p + (p-1) + (p-2), ..., p + (p-1) + (p-2) + ... + 1 (a finite list of p numbers). The sequence gives those values which are not crossed out by a sum initiated by a lesser integer. They are the "primes" of this decaying sieve.
Geometrical interpretation: in the sieve of Eratosthenes, each surviving integer p can be seen as eliminating those numbers that enumerate a rectangular area dot pattern one side of which has length p. In this sieve, each surviving integer k eliminates each number that enumerates a trapezoidal area dot pattern (on a triangular grid) with longest side k, plus the limiting case of the triangular area dot pattern with side k (the k-th triangular number). - Peter Munn, Jan 05 2017
If such a pattern has m dots, the possible lengths (number of dots) for the longest side are the nonzero numbers that occur in row m of A286013 after the number m in column 1. Thus m is in this sequence if and only if none of the other numbers in row m of A286013 are in this sequence. - Peter Munn, Jun 18 2017

Examples

			The sieve starts as follows. Initially no numbers are crossed out. Take a(1)=1 and cross it out. The next uncrossed number is 2, so a(2)=2. Now cross out 2 and 2+1. The next uncrossed number is 4, so a(3)=4. Then cross out 4, 4+3, 4+3+2, 4+3+2+1. The next uncrossed number is 5, and so on.
		

Crossrefs

Cf. A281256 for tabulation of its runs of consecutive integers.

Programs

  • Java
    int limit = 15707; //highest number in the sieve (inclusive)
    boolean[] n = new boolean[limit + 1];
    int index = 1;
    for ( int i = 1; i < n.length; i++ ) {
    if ( !n[i] ) {
    System.out.println(index++ + " " + i);
    int j = i, k = i;
    while ( k + j - 1 < n.length && j > 0 ) {
    k += --j;
    n[k] = true;
    }
    }
    }
    // Griffin N. Macris, Mar 24 2016
  • Mathematica
    nn = 200; a = Range@ nn; Do[If[Length@a >= n, a = Complement[a, Function[k, Rest@ Map[Total, MapIndexed[Take[k, #] &, Range@ Max@ k]]]@ Reverse@ Range@ a[[n]]]], {n, 2, nn}]; a (* Michael De Vlieger, Mar 25 2016 *)

Formula

Lexicographically earliest sequence of positive integers such that for n >= 1, 1 <= m < n, k >= 1, A286013(a(n),k) <> a(m). - Peter Munn, Jun 19 2017

Extensions

Essential qualification added to definition by Peter Munn, Jan 19 2017

A137894 Limiting sequence when we start with positive integers (A000027) and at step n >= 1 add to the term at position n + a(n) the value n.

Original entry on oeis.org

1, 3, 3, 4, 7, 9, 7, 12, 9, 10, 11, 17, 13, 21, 21, 16, 17, 27, 19, 38, 21, 33, 23, 24, 25, 39, 27, 28, 41, 30, 31, 48, 33, 51, 49, 51, 37, 57, 39, 40, 41, 63, 43, 44, 63, 69, 47, 72, 49, 75, 51, 52, 53, 81, 77, 84, 57, 78, 59, 90, 61, 93, 63, 64, 91, 99, 67, 68, 69, 99
Offset: 1

Views

Author

Ctibor O. Zizka, Apr 30 2008

Keywords

Crossrefs

Programs

  • Maple
    mx:= 10000: # maximal index needed
    b:= proc(n) n end:
    a:= proc(n) option remember; global mx; local h, t;
          if n=0 then 0 else a(n-1); t:= b(n);
            if n+t<=mx then h:=b(t+n); b(t+n):=h+n fi; t
          fi
        end:
    seq(a(n), n=1..100);  # Alois P. Heinz, Mar 04 2015
  • Mathematica
    mx = 10000 (* maximal index needed *); b[n_] := n; a[n_] := a[n] = Module[{h, t}, If[n == 0, 0, a[n-1]; t = b[n]; If[n+t <= mx, h = b[t+n]; b[t+n] = h+n]; t]]; Table[a[n], {n, 1, 100}] (* Jean-François Alcover, Oct 24 2016, after Alois P. Heinz *)
  • Python
    TOP = 1000
    a = [1]*TOP
    for n in range(1,TOP):
      a[n]=n
    for n in range(1,TOP):
      print(str(a[n]),end=',')
      if n+a[n]Alex Ratushnyak, Nov 22 2013

Formula

Limiting sequence when we start with positive integers (A000027) and at step n >= 1 add to the term at position n + a(n) the value n.

Extensions

More terms from Alex Ratushnyak, Nov 22 2013.

A137832 Limiting sequence when we start with the positive integers (A000027) and delete in step n >= 1 the last digit in the term at position n + a(n).

Original entry on oeis.org

1, 3, 4, 5, 7, 8, 10, 11, 1, 1, 1, 16, 1, 1, 1, 21, 2, 23, 2, 25, 2, 27, 2, 29, 3, 31, 3, 3, 34, 3, 3, 37, 3, 3, 40, 4, 43, 44, 45, 47, 48, 49, 5, 51, 52, 53, 5, 5, 56, 57, 5, 5, 6, 61, 6, 6, 6, 65, 6, 67, 69, 7, 7, 72, 7, 7, 75, 76, 7, 7, 79, 8, 82, 83, 84, 8
Offset: 1

Views

Author

Ctibor O. Zizka, Apr 29 2008

Keywords

Examples

			First few steps are:
1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,...
n = 1; delete the last digit in the term at position 1+a(1) = 2: 2;
1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,...
n = 2; delete the last digit in the term at position 2+a(2) = 5: 6;
1,3,4,5,7,8,9,10,11,12,13,14,15,16,17,18,19,20,...
n = 3; delete the last digit in the term at position 3+a(3) = 7: 9;
1,3,4,5,7,8,10,11,12,13,14,15,16,17,18,19,20,...
n = 4; delete the last digit in the term at position 4+a(4) = 9: 2;
1,3,4,5,7,8,10,11,1,13,14,15,16,17,18,19,20,...
n = 5; delete the last digit in the term at position 5+a(5) = 12: 5;
1,3,4,5,7,8,10,11,1,13,14,1,16,17,18,19,20,...
n = 6; delete the last digit in the term at position 6+a(6) = 14: 8;
1,3,4,5,7,8,10,11,1,13,14,1,16,17,1,19,20,...
		

Crossrefs

A137901 Limiting sequence when we start with positive integers (A000027) and at step n >= 1 add to the term at position n + a(n) the value 1.

Original entry on oeis.org

1, 3, 3, 4, 6, 7, 7, 9, 9, 10, 12, 12, 14, 15, 15, 16, 18, 19, 19, 21, 21, 22, 24, 25, 25, 26, 28, 28, 30, 31, 31, 33, 33, 34, 36, 36, 38, 39, 39, 40, 42, 43, 43, 45, 45, 46, 48, 48, 50, 51, 51, 53, 53, 54, 56, 57, 57, 58, 60, 60, 62, 63, 63, 64, 66, 67, 67, 69, 69, 70
Offset: 1

Views

Author

Ctibor O. Zizka, Apr 30 2008

Keywords

Crossrefs

Programs

  • PARI
    lista(nn) = my(va = [1..nn]); for (n=1, nn, my(m = n+va[n]); if (m <= nn, va[m]++)); va; \\ Michel Marcus, Oct 29 2022

Formula

Limiting sequence when we start with positive integers (A000027) and at step n >= 1 add to the term at position n + a(n) the value 1.

Extensions

Entries corrected and extended by Paolo P. Lava, Mar 10 2009
More terms from Michel Marcus, Oct 29 2022

A137902 Limiting sequence when we start with positive integers (A000027) and at step n >= 1 add to the term at position n + a(n) the value 1 if the term is odd, otherwise divide the term by 2.

Original entry on oeis.org

1, 1, 4, 4, 5, 6, 8, 4, 9, 5, 11, 3, 13, 14, 4, 16, 17, 9, 20, 20, 21, 11, 23, 24, 25, 13, 28, 14, 29, 30, 31, 16, 34, 17, 35, 36, 37, 38, 20, 20, 41, 22, 43, 44, 45, 23, 47, 12, 49, 25, 52, 52, 53, 54, 56, 56, 57, 29, 60, 16, 61, 31, 63, 32, 65, 66, 68, 68, 70, 35
Offset: 1

Views

Author

Ctibor O. Zizka, Apr 30 2008

Keywords

Crossrefs

Programs

  • PARI
    lista(nn) = my(va = [1..nn]); for (n=1, nn, my(m = n+va[n]); if (m <= nn, if (va[m] % 2, va[m]++, va[m] /= 2));); va; \\ Michel Marcus, Oct 29 2022

Extensions

More terms from Michel Marcus, Oct 29 2022

A137838 Limiting sequence when we start with the positive integers (A000027) and delete in step n >= 1 the first digit in the term at position n + a(n).

Original entry on oeis.org

1, 3, 4, 5, 7, 8, 10, 11, 2, 13, 4, 5, 16, 7, 8, 19, 21, 2, 23, 4, 5, 6, 7, 8, 29, 0
Offset: 1

Views

Author

Ctibor O. Zizka, Apr 29 2008

Keywords

Examples

			First few steps are:
1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,...
n = 1; delete the first digit in the term at position 1+a(1) = 2: 2;
1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,...
n = 2; delete the first digit in the term at position 2+a(2) = 5: 6;
1,3,4,5,7,8,9,10,11,12,13,14,15,16,17,18,19,20,...
n = 3; delete the first digit in the term at position 3+a(3) = 7: 9;
1,3,4,5,7,8,10,11,12,13,14,15,16,17,18,19,20,...
n = 4; delete the first digit in the term at position 4+a(4) = 9: 1;
1,3,4,5,7,8,10,11,2,13,14,15,16,17,18,19,20,...
n = 5; delete the first digit in the term at position 5+a(5) = 12: 1;
1,3,4,5,7,8,10,11,2,13,14,5,16,17,18,19,20,...
n = 6; delete the first digit in the term at position 6+a(6) = 14: 1;
1,3,4,5,7,8,10,11,2,13,14,5,16,7,18,19,20,...
		

Crossrefs

A137898 Limiting sequence when we start with positive integers (A000027) and at step n >= 1 add to the term at position n + a(n) the value of the term at position n+a(n)+1.

Original entry on oeis.org

1, 5, 3, 4, 5, 21, 15, 17, 9, 21, 11, 12, 13, 14, 15, 16, 17, 37, 19, 20, 21, 68, 23, 75, 51, 81, 55, 57, 29, 93, 63, 65, 33, 69, 35, 36, 37, 77, 39, 81, 41, 85, 43, 44, 45, 93, 47, 48
Offset: 1

Views

Author

Ctibor O. Zizka, Apr 30 2008

Keywords

Crossrefs

Formula

Limiting sequence when we start with positive integers (A000027) and at step n >= 1 add to the term at position n + a(n) the value of the term at position n+a(n)+1.

Extensions

Entries corrected and extended by Paolo P. Lava, Mar 10 2009

A137903 Limiting sequence when we start with positive integers (A000027) and at step n >= 1 add to the term at position n + a(n) the value a(n) if the term is odd, else divide the term by 2.

Original entry on oeis.org

1, 1, 4, 4, 5, 6, 11, 4, 9, 5, 11, 3, 13, 14, 10, 16, 17, 18, 19, 20, 21, 11, 23, 24, 35, 13, 27, 14, 29, 30, 31, 16, 44, 17, 35, 18, 37, 19, 52, 20, 41, 35, 43, 44, 45, 23, 47, 12, 49, 50, 68, 52, 53, 45, 55, 56, 76, 29, 59, 47, 61, 31, 63, 64, 65, 66, 67, 68, 92, 35
Offset: 1

Views

Author

Ctibor O. Zizka, Apr 30 2008

Keywords

Crossrefs

Programs

  • PARI
    lista(nn) = my(va = [1..nn]); for (n=1, nn, my(m = n+va[n]); if (m <= nn, if (va[m] % 2, va[m]+=va[n], va[m] /= 2));); va; \\ Michel Marcus, Oct 29 2022

Extensions

Entries corrected and extended by Paolo P. Lava, Mar 10 2009
More terms from Michel Marcus, Oct 29 2022
Showing 1-10 of 11 results. Next