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.

A258330 Inverse permutation to A258329.

Original entry on oeis.org

7, 4, 1, 8, 5, 2, 9, 6, 3, 70, 77, 84, 91, 98, 105, 12, 19, 26, 33, 40, 47, 54, 61, 68, 75, 82, 89, 96, 203, 10, 17, 24, 31, 38, 45, 52, 59, 66, 73, 80, 87, 94, 301, 308, 15, 22, 29, 36, 43, 50, 57, 64, 71, 78, 85, 92, 99, 406, 13, 20, 27, 34, 41, 48, 55, 62
Offset: 1

Views

Author

Reinhard Zumkeller, May 27 2015

Keywords

Crossrefs

Cf. A258329.

Programs

  • Haskell
    import Data.List (elemIndex); import Data.Maybe (fromJust)
    a258330 = (+ 1) . fromJust . (`elemIndex` a258329_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

A258334 A258217(n) / 7.

Original entry on oeis.org

2, 3, 5, 6, 8, 9, 1, 12, 13, 15, 16, 18, 19, 20, 22, 23, 25, 26, 28, 29, 30, 32, 33, 35, 36, 38, 39, 4, 42, 43, 45, 46, 48, 49, 50, 52, 53, 55, 56, 58, 59, 60, 62, 63, 65, 66, 68, 69, 7, 72, 73, 75, 76, 78, 79, 80, 82, 83, 85, 86, 88, 89, 90, 92, 93, 95, 96
Offset: 1

Views

Author

Reinhard Zumkeller, May 27 2015

Keywords

Comments

Permutation of the positive integers, inverse: A258335.

Crossrefs

Programs

  • Haskell
    a258334 = flip div 7 . a258217

A258188 Smallest multiple of 7 not appearing earlier that ends with n.

Original entry on oeis.org

21, 42, 63, 14, 35, 56, 7, 28, 49, 210, 511, 112, 413, 714, 315, 616, 217, 518, 119, 420, 721, 322, 623, 224, 525, 126, 427, 728, 329, 630, 231, 532, 133, 434, 735, 336, 637, 238, 539, 140, 441, 742, 343, 644, 245, 546, 147, 448, 749, 350, 651, 252, 553, 154
Offset: 1

Views

Author

Keywords

Comments

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

Crossrefs

Programs

  • Haskell
    import Data.List (isPrefixOf, delete)
    a258188 n = a258188_list !! (n-1)
    a258188_list = f 1 $ tail $ zip
       a008589_list $ map (reverse . show) a008589_list where
       f x ws = g ws where
         g ((u, vs) : uvs) = if isPrefixOf xs vs
                             then u : f (x + 1) (delete (u, vs) ws) else g uvs
         xs = reverse $ show x
  • Mathematica
    a[n_] := a[n] = For[k = 7, True, k = k + 7, If[Divisible[k - n, 10^IntegerLength[n]] && FreeQ[Array[a, n-1], k], Return[k]]]; Array[a, 54] (* Jean-François Alcover, Feb 07 2018 *)
Showing 1-4 of 4 results.