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

A261189 Integers such that no subsequence of decimal representation is divisible by 5.

Original entry on oeis.org

1, 2, 3, 4, 6, 7, 8, 9, 11, 12, 13, 14, 16, 17, 18, 19, 21, 22, 23, 24, 26, 27, 28, 29, 31, 32, 33, 34, 36, 37, 38, 39, 41, 42, 43, 44, 46, 47, 48, 49, 61, 62, 63, 64, 66, 67, 68, 69, 71, 72, 73, 74, 76, 77, 78, 79, 81, 82, 83, 84, 86, 87, 88, 89, 91, 92, 93, 94, 96, 97, 98, 99, 111, 112, 113, 114, 116, 117, 118, 119, 121
Offset: 1

Views

Author

Zak Seidov, Aug 11 2015

Keywords

Comments

Or, integers with no decimal digits 0 and 5 (see 2nd Mma).

Crossrefs

Intersection of A052382 and A052413.

Programs

  • Haskell
    import Data.List.Ordered (isect)
    a261189 n = a261189_list !! (n-1)
    a261189_list = a052382_list `isect` a052413_list
    -- Reinhard Zumkeller, Aug 13 2015
  • Mathematica
    (*1*)Reap[Do[Le=Length[id=IntegerDigits[n]];If[Min[Mod[Flatten[Table[FromDigits[Take[id,{x,y}]],{x,Le},{y,x,Le}]],5]]>0,Sow[n]],{n,199}]][[2,1]]
    (*2*)Reap[Do[id=IntegerDigits[n];If[Intersection[id,{0,5}]== {},Sow[n]],{n,199}]][[2,1]]
  • PARI
    a(n)=fromdigits(apply(d->if(d>3,d+1,d), digits(n-1,8)))+1 \\ Charles R Greathouse IV, Aug 11 2015
    

A261188 Integers such that no subsequence of decimal representation is divisible by 3.

Original entry on oeis.org

1, 2, 4, 5, 7, 8, 11, 14, 17, 22, 25, 28, 41, 44, 47, 52, 55, 58, 71, 74, 77, 82, 85, 88
Offset: 1

Views

Author

Zak Seidov, Aug 11 2015

Keywords

Crossrefs

Cf. A114922.

A114879 Numbers n coprime to 3 such that there exists an (n-1)-digit ternary number wherein each substring is indivisible by n.

Original entry on oeis.org

2, 4, 5, 10, 20, 37
Offset: 1

Views

Author

Don Reble, Feb 17 2006

Keywords

Comments

a(7) > 64.

Examples

			20 is there because each substring of 1121212211122121211 (base 3) is indivisible by 20.
		

Crossrefs

Showing 1-3 of 3 results.