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.

A037396 Numbers k such that every base-5 digit of k is a base-9 digit of k.

Original entry on oeis.org

1, 2, 3, 4, 11, 22, 93, 121, 124, 126, 156, 181, 199, 317, 362, 598, 750, 751, 752, 755, 756, 758, 768, 770, 771, 775, 776, 780, 781, 785, 796, 812, 831, 841, 843, 849, 859, 895, 900, 906, 907, 911, 912, 918, 922, 927, 931, 932
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Haskell
    import Data.List ((\\), nub)
    a037396 n = a037396_list !! (n-1)
    a037396_list = filter f [1..] where
       f x = null $ nub (ds 5 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
    
  • PARI
    is(n)=#setminus(Set(digits(n,5)), Set(digits(n,9)))==0 \\ Charles R Greathouse IV, Feb 11 2017

A037393 Numbers k such that every base-5 digit of k is a base-6 digit of k.

Original entry on oeis.org

1, 2, 3, 4, 6, 12, 18, 24, 31, 46, 56, 62, 75, 81, 87, 90, 91, 92, 93, 94, 99, 118, 124, 145, 150, 157, 226, 232, 243, 245, 291, 300, 306, 307, 308, 311, 312, 314, 322, 326, 332, 336, 337, 338, 341, 362, 372, 374, 378, 411, 416, 418
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

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

A037394 Numbers k such that every base-5 digit of k is a base-7 digit of k.

Original entry on oeis.org

1, 2, 3, 4, 17, 51, 66, 102, 109, 123, 156, 158, 162, 206, 218, 312, 317, 324, 361, 381, 416, 418, 423, 458, 462, 463, 466, 467, 468, 472, 494, 518, 545, 546, 549, 556, 557, 559, 562, 584, 606, 619, 621, 630, 640, 651, 658, 687
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Haskell
    import Data.List ((\\), nub)
    a037394 n = a037394_list !! (n-1)
    a037394_list = filter f [1..] where
       f x = null $ nub (ds 5 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
  • Mathematica
    Select[Range[700],SubsetQ[IntegerDigits[#,7],IntegerDigits[#,5]]&] (* Harvey P. Dale, Sep 29 2017 *)

A037397 Every base 5 digit of n is a base 10 digit of n.

Original entry on oeis.org

1, 2, 3, 4, 12, 24, 31, 62, 93, 104, 124, 130, 150, 156, 162, 174, 182, 213, 250, 260, 281, 302, 312, 324, 342, 390, 473, 493, 504, 604, 624, 781, 812, 831, 912, 1003, 1030, 1031, 1032, 1033, 1034, 1043, 1083, 1093, 1174, 1234, 1243
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

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

A037431 Positive numbers having the same set of digits in base 5 and base 8.

Original entry on oeis.org

1, 2, 3, 4, 91, 136, 200, 272, 540, 545, 609, 672, 705, 1035, 1164, 1665, 1681, 1698, 1699, 1748, 1818, 2115, 2123, 2179, 2323, 4257, 4260, 4625, 4626, 4682, 4691, 4760, 4802, 4817, 4818, 4834, 4880, 5211, 5251, 5315, 5324, 5328, 5331, 5337
Offset: 1

Views

Author

Keywords

Examples

			545 is in the sequence because 545 in base 5 is 4140 and in base 8 it is 1041.
		

Crossrefs

Subsequence of A037395.

Programs

  • Mathematica
    Select[Range[5500],Union[IntegerDigits[#,5]]==Union[IntegerDigits[#,8]]&] (* Harvey P. Dale, Jun 01 2018 *)

Extensions

Corrected by Don Reble, Apr 28 2006
Edited by John Cerkan, Feb 11 2017
Showing 1-5 of 5 results.