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

A258226 Inverse permutation to A258225.

Original entry on oeis.org

3, 6, 9, 2, 5, 8, 1, 4, 7, 30, 33, 36, 39, 42, 45, 48, 51, 54, 57, 60, 63, 66, 69, 72, 75, 78, 81, 84, 87, 90, 93, 96, 99, 102, 105, 108, 11, 14, 17, 20, 23, 26, 29, 32, 35, 38, 41, 44, 47, 50, 53, 56, 59, 62, 65, 68, 71, 74, 77, 80, 83, 86, 89, 92, 95, 98
Offset: 1

Views

Author

Reinhard Zumkeller, May 27 2015

Keywords

Crossrefs

Cf. A258225.

Programs

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

A258083 Smallest multiple of 3 not appearing earlier that ends with n.

Original entry on oeis.org

21, 12, 3, 24, 15, 6, 27, 18, 9, 210, 111, 312, 213, 114, 315, 216, 117, 318, 219, 120, 321, 222, 123, 324, 225, 126, 327, 228, 129, 30, 231, 132, 33, 234, 135, 36, 237, 138, 39, 240, 141, 42, 243, 144, 45, 246, 147, 48, 249, 150, 51, 252, 153, 54, 255, 156
Offset: 1

Views

Author

Keywords

Comments

a(10*n) = 10*a(n).
The sequence is a permutation of the positive multiples of 3. - Vladimir Shevelev, May 24 2015
24 ends with 24 but as 24 is the least element divisible by 3 that ends with 4, it's already used and a(24) = 324. Generally, a(n) = k * 10^d + n with k in {0,1,2,3} and d the number of digits of n. - David A. Corneth, May 24 2015
A258225(n) = a(n) / 3 is a permutation of the positive integers. - Reinhard Zumkeller, May 27 2015

Crossrefs

Programs

  • Haskell
    import Data.List (isPrefixOf, delete)
    a258083 n = a258083_list !! (n-1)
    a258083_list = f 1 $ tail $ zip
       a008585_list $ map (reverse . show) a008585_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=3, True, k=k+3, If[Divisible[k-n, 10^IntegerLength[n] ] && FreeQ[Array[a, n-1], k], Return[k]]]; Array[a, 56] (* Jean-François Alcover, Feb 06 2018 *)
  • PARI
    a(n) = {my(d = digits(n), s = vecsum(d), k); if(s%3 > 0,k = (3 - s%3)%3, i=1; while(i < #d && d[i] == 3,i++); if(i<#d && d[i+1] >= 1 && d[i]-1 == bitand(d[i]-1, 1), k = 3)); k*10^#d + n} \\ David A. Corneth, May 24 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

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

A258370 Primes as they appear in sequence {A258083(n)/3}.

Original entry on oeis.org

7, 5, 2, 3, 37, 71, 73, 107, 41, 109, 43, 11, 79, 13, 47, 83, 17, 19, 53, 89, 23, 59, 61, 29, 97, 31, 367, 701, 1039, 373, 709, 379, 1049, 383, 1051, 719, 389, 727, 1061, 1063, 397, 733, 67, 401, 739, 409, 743, 751, 419, 1087, 421, 757, 1091, 1093, 761, 1097, 431, 433, 101, 769, 103, 439, 773, 1109, 443, 113, 449, 787, 457, 127, 461
Offset: 1

Views

Author

Vladimir Shevelev, May 28 2015

Keywords

Comments

The sequence is a permutation of the primes.

Crossrefs

Showing 1-5 of 5 results.