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-4 of 4 results.

A252448 Inverse permutation to A249990.

Original entry on oeis.org

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

Views

Author

Reinhard Zumkeller, Dec 17 2014

Keywords

Crossrefs

Cf. A249990 (inverse), A252458 (fixed points).

Programs

  • Haskell
    import Data.List (elemIndex); import Data.Maybe (fromJust)
    a252448 = (+ 1) . fromJust . (`elemIndex` a249990_list)

A252458 Fixed points of permutations A249990 and A252448.

Original entry on oeis.org

8, 13, 14, 34, 139, 140, 383, 960, 1609, 2064, 5487, 7171, 7715, 21059, 22523, 24148, 91924, 117728, 200193, 304381, 609147, 866933, 920405, 930571, 985939
Offset: 1

Views

Author

Reinhard Zumkeller, Dec 17 2014

Keywords

Comments

A249990(a(n)) = A252448(a(n)) = a(n).

Crossrefs

Programs

  • Haskell
    a252458 n = a252458_list !! (n-1)
    a252458_list = [x | x <- [1..], a249990 x == x]

A249991 Start with the natural numbers, reverse the order in each pair, skip one number, reverse the order in each triple, skip one number, and so on.

Original entry on oeis.org

2, 3, 5, 10, 12, 13, 21, 26, 28, 39, 41, 46, 54, 65, 67, 82, 84, 85, 109, 114, 122, 137, 139, 160, 178, 179, 181, 222, 230, 235, 269, 274, 276, 313, 331, 336, 370, 381, 383, 424, 426, 437, 471, 476, 536, 541, 549, 554, 618, 629, 647, 704, 706, 707, 761, 818
Offset: 1

Views

Author

Alex Ratushnyak, Nov 27 2014

Keywords

Comments

Start with the natural numbers. Reverse the order of numbers in each pair. Skip one number. In the remainder (that is, "1, 4, 3, 6, 5, 8, 7, 10, 9, 12, 11,...") reverse the order in each triple. Skip one number. In the remainder (it starts with "4, 1, 8, 5, 6, 9, 10, 7") reverse the order in each tetrad. Skip one number. And so on.

Crossrefs

Partial sums of A057031.

Programs

  • Python
    TOP = 100000
    a = list(range(TOP))
    for step in range(2,TOP):
      numBlocks = (len(a)-1) // step
      if numBlocks==0:  break
      a = a[:(1+numBlocks*step)]
      for pos in range(1,len(a),step):
        a[pos:pos+step] = a[pos+step-1:pos-1:-1]
      print(a[1], end=', ')
      a[1:] = a[2:]

A256964 Solution to Popular Computing Problem 196.

Original entry on oeis.org

6, 8, 10, 9, 14, 12, 4, 15, 22, 5, 26, 21, 18, 32, 34, 7, 38, 40, 24, 33, 46, 27, 50, 39, 30, 56, 58, 11, 62, 48, 36, 51, 70, 13, 74, 57, 42, 60, 82, 45, 86, 88, 16, 69, 94, 17, 98, 75, 54, 104, 106, 19, 110, 84, 20, 87, 118, 63, 122, 93, 66, 128, 130, 23, 134
Offset: 1

Views

Author

N. J. A. Sloane, Apr 16 2015

Keywords

Comments

See link for statement of the problem.

Crossrefs

Cf. A249990.

Programs

Showing 1-4 of 4 results.