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.

A258335 Inverse permutation to A258334.

Original entry on oeis.org

7, 1, 2, 28, 3, 4, 49, 5, 6, 70, 77, 8, 9, 98, 10, 11, 119, 12, 13, 14, 147, 15, 16, 168, 17, 18, 189, 19, 20, 21, 217, 22, 23, 238, 24, 25, 259, 26, 27, 280, 287, 29, 30, 308, 31, 32, 329, 33, 34, 35, 357, 36, 37, 378, 38, 39, 399, 40, 41, 42, 427, 43, 44
Offset: 1

Views

Author

Reinhard Zumkeller, May 27 2015

Keywords

Crossrefs

Cf. A258334.

Programs

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

A258225 a(n) = A258083(n) / 3.

Original entry on oeis.org

7, 4, 1, 8, 5, 2, 9, 6, 3, 70, 37, 104, 71, 38, 105, 72, 39, 106, 73, 40, 107, 74, 41, 108, 75, 42, 109, 76, 43, 10, 77, 44, 11, 78, 45, 12, 79, 46, 13, 80, 47, 14, 81, 48, 15, 82, 49, 16, 83, 50, 17, 84, 51, 18, 85, 52, 19, 86, 53, 20, 87, 54, 21, 88, 55
Offset: 1

Views

Author

Reinhard Zumkeller, May 27 2015

Keywords

Comments

Permutation of the positive integers, inverse: A258226.

Crossrefs

Programs

  • Haskell
    a258225 = flip div 3 . a258083
    
  • PARI
    lista(nn) = {v = []; vs = vecsort(v); for (n=1, nn, k=3; pt = 10^(#digits(n)); while (! (((k % pt) == n) && !vecsearch(vs, k)), k+=3); v = concat(v, k); vs = vecsort(v); print1(k/3, ", "););} \\ Michel Marcus, Jun 26 2015

A258329 A258188(n) / 7.

Original entry on oeis.org

3, 6, 9, 2, 5, 8, 1, 4, 7, 30, 73, 16, 59, 102, 45, 88, 31, 74, 17, 60, 103, 46, 89, 32, 75, 18, 61, 104, 47, 90, 33, 76, 19, 62, 105, 48, 91, 34, 77, 20, 63, 106, 49, 92, 35, 78, 21, 64, 107, 50, 93, 36, 79, 22, 65, 108, 51, 94, 37, 80, 23, 66, 109, 52, 95
Offset: 1

Views

Author

Reinhard Zumkeller, May 27 2015

Keywords

Comments

Permutation of the positive integers, inverse: A258330.

Crossrefs

Programs

  • Haskell
    a258329 = flip div 7 . a258188

A258217 Smallest multiple of 7 starting with n, that did not appear earlier.

Original entry on oeis.org

14, 21, 35, 42, 56, 63, 7, 84, 91, 105, 112, 126, 133, 140, 154, 161, 175, 182, 196, 203, 210, 224, 231, 245, 252, 266, 273, 28, 294, 301, 315, 322, 336, 343, 350, 364, 371, 385, 392, 406, 413, 420, 434, 441, 455, 462, 476, 483, 49, 504, 511, 525, 532, 546
Offset: 1

Views

Author

Keywords

Comments

The sequence is a permutation of the positive multiples of 7. - Vladimir Shevelev, May 24 2015
A258334(n) = a(n) / 7 is a permutation of the positive integers. - Reinhard Zumkeller, May 27 2015

Crossrefs

Programs

  • Haskell
    import Data.List (isPrefixOf, delete)
    a258217 n = a258217_list !! (n-1)
    a258217_list = f 1 $ tail $ zip a008589_list $ map show a008589_list where
       f x ws = g ws where
         g ((u, vs) : uvs) = if isPrefixOf (show x) vs
                             then u : f (x + 1) (delete (u, vs) ws) else g uvs
  • Mathematica
    a[1] = 14; a[n_] := a[n] = For[dn = IntegerDigits[n]; k = 7, True, k = k+7, dk = IntegerDigits[k]; lg = Min[Length[dn], Length[dk]]; If[Union[ Take[dk, lg] - Take[dn, lg]] == {0} && FreeQ[Array[a, n-1], k], Return[k]]]; Array[a, 54] (* Jean-François Alcover, Feb 09 2018 *)
Showing 1-4 of 4 results.