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

A037405 Numbers k such that every base-8 digit of k is a base-9 digit of k.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 9, 18, 27, 36, 45, 54, 63, 73, 124, 137, 146, 177, 210, 219, 283, 284, 292, 356, 365, 429, 438, 502, 511, 568, 576, 586, 763, 768, 769, 772, 897, 906, 942, 945, 946, 950, 970, 1100, 1152, 1163, 1172, 1199, 1474
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Haskell
    import Data.List ((\\), nub)
    a037405 n = a037405_list !! (n-1)
    a037405_list = filter f [1..] where
       f x = null $ nub (ds 8 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
  • Mathematica
    bQ[n_]:=Module[{idn8=Union[IntegerDigits[n,8]],idn9=Union[ IntegerDigits[ n,9]]},And@@ (MemberQ[ idn9,#]&/@idn8)]; Select[Range[1500],bQ] (* Harvey P. Dale, Jul 17 2011 *)

A037442 Positive numbers having the same set of digits in base 8 and base 10.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 614, 1124, 1233, 1273, 1653, 2154, 2466, 3160, 3161, 3162, 3163, 3164, 3165, 3166, 3167, 3226, 4100, 4711, 5117, 5213, 5421, 6414, 6541, 7105, 7125, 7135, 7151, 7671, 10241, 11257, 11625, 11662, 11726, 13000, 13271, 13320
Offset: 1

Views

Author

Keywords

Examples

			1233 is in the sequence because 1233 in base 8 is 2321.
		

Crossrefs

Subsequence of A037406.

Programs

  • Mathematica
    Select[Range@ 13400, Union@ IntegerDigits[#, 8] == Union@ IntegerDigits@ # &] (* Michael De Vlieger, Feb 18 2017 *)
  • PARI
    isok(n) = Set(digits(n, 8)) == Set(digits(n)); \\ Michel Marcus, Feb 18 2017

Extensions

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