A037432 Positive numbers having the same set of digits in base 5 and base 9.
1, 2, 3, 4, 11, 22, 121, 181, 199, 362, 849, 895, 900, 911, 994, 1074, 1084, 1495, 1703, 1711, 1723, 1739, 1794, 1800, 1813, 1822, 2225, 2287, 2288, 2299, 2385, 2469, 2513, 2515, 2945, 3001, 3006, 3034, 3117, 3249, 6582, 6663, 6759, 6761
Offset: 1
Examples
362 is in the sequence because 362 in base 5 is 2422 and in base 9 it is 442.
Links
- John Cerkan, Table of n, a(n) for n = 1..10000
Crossrefs
Subsequence of A037396.
Programs
-
Mathematica
Select[Range[7000],Union[IntegerDigits[#,5]]==Union[IntegerDigits[#,9]]&] (* Harvey P. Dale, Mar 08 2011 *)
-
PARI
is(n)=Set(digits(n,5))==Set(digits(n,9)) \\ Charles R Greathouse IV, Feb 11 2017
Extensions
More terms from Don Reble, Apr 28 2006