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.

A037399 Numbers k such that every base-6 digit of k is a base-8 digit of k.

Original entry on oeis.org

1, 2, 3, 4, 5, 28, 80, 85, 86, 98, 115, 160, 172, 213, 266, 331, 345, 532, 691, 699, 705, 708, 717, 720, 727, 763, 765, 792, 799, 811, 819, 835, 851, 859, 861, 863, 864, 900, 916, 928, 1036, 1061, 1068, 1085, 1093, 1128, 1129, 1130
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Haskell
    import Data.List ((\\), nub)
    a037399 n = a037399_list !! (n-1)
    a037399_list = filter f [1..] where
       f x = null $ nub (ds 6 x) \\ nub (ds 8 x)
       ds b x = if x > 0 then d : ds b x' else []  where (x', d) = divMod x b
    -- Reinhard Zumkeller, May 30 2013
  • Mathematica
    b68Q[n_]:=Module[{b6=Union[IntegerDigits[n,6]],b8=Union[IntegerDigits[ n,8]]}, And@@Table[ MemberQ[b8,b6[[i]]],{i,Length[b6]}]]; Select[Range[ 1200],b68Q] (* Harvey P. Dale, Mar 24 2012 *)

A037398 Numbers k such that every base-6 digit of k is a base-7 digit of k.

Original entry on oeis.org

1, 2, 3, 4, 5, 7, 14, 21, 28, 35, 43, 68, 79, 86, 122, 123, 129, 165, 172, 208, 215, 246, 252, 260, 361, 373, 397, 425, 427, 431, 444, 445, 446, 469, 475, 476, 479, 481, 482, 504, 513, 520, 527, 556, 562, 583, 625, 696, 738, 756
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Haskell
    import Data.List ((\\), nub)
    a037398 n = a037398_list !! (n-1)
    a037398_list = filter f [1..] where
       f x = null $ nub (ds 6 x) \\ nub (ds 7 x)
       ds b x = if x > 0 then d : ds b x' else []  where (x', d) = divMod x b
    -- Reinhard Zumkeller, May 30 2013

A037400 Numbers k such that every base-6 digit of k is a base-9 digit of k.

Original entry on oeis.org

1, 2, 3, 4, 5, 21, 104, 108, 115, 129, 194, 212, 215, 252, 259, 271, 280, 352, 370, 388, 417, 504, 651, 756, 757, 758, 759, 760, 761, 762, 763, 777, 913, 922, 928, 932, 949, 976, 994, 1008, 1015, 1030, 1076, 1137, 1147, 1151, 1152
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Haskell
    import Data.List ((\\), nub)
    a037400 n = a037400_list !! (n-1)
    a037400_list = filter f [1..] where
       f x = null $ nub (ds 6 x) \\ nub (ds 9 x)
       ds b x = if x > 0 then d : ds b x' else []  where (x', d) = divMod x b
    -- Reinhard Zumkeller, May 30 2013

A037437 Positive numbers having the same set of digits in base 6 and base 10.

Original entry on oeis.org

1, 2, 3, 4, 5, 331, 1014, 1045, 1135, 1145, 1151, 1440, 1504, 3142, 3225, 3321, 3332, 3402, 5003, 5143, 10104, 10225, 10335, 10350, 10420, 10542, 11023, 11132, 11240, 11324, 11425, 11520, 11552, 12103, 12213, 12223, 12235, 12320, 13014, 13341
Offset: 1

Views

Author

Keywords

Examples

			1145 is in the sequence because 1145 in base 6 is 5145.
		

Crossrefs

Subsequence of A037401.

Programs

  • Mathematica
    Select[Range[14000],Union[IntegerDigits[#]]==Union[IntegerDigits[ #,6]]&] (* Harvey P. Dale, Dec 09 2011 *)

Extensions

More terms from Don Reble, Apr 28 2006
Edited by John Cerkan, Feb 17 2017
Showing 1-4 of 4 results.