login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A032912 Numbers whose set of base-5 digits is {1,3}. 3
1, 3, 6, 8, 16, 18, 31, 33, 41, 43, 81, 83, 91, 93, 156, 158, 166, 168, 206, 208, 216, 218, 406, 408, 416, 418, 456, 458, 466, 468, 781, 783, 791, 793, 831, 833, 841, 843, 1031, 1033, 1041, 1043, 1081, 1083, 1091, 1093, 2031, 2033 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Or, Numbers all of whose base-5 digits are odd.
LINKS
MATHEMATICA
Flatten[Table[FromDigits[#, 5]&/@Tuples[{1, 3}, n], {n, 5}]] (* Vincenzo Librandi, Jun 01 2012 *)
PROG
(Magma) [n: n in [1..2500] | Set(IntegerToSequence(n, 5)) subset {1, 3}]; // Vincenzo Librandi, Jun 01 2012
(Python)
def A032912(n): return (int(bin(m:=n+1)[3:], 5)<<1) + (5**(m.bit_length()-1)-1>>2) # Chai Wah Wu, Oct 13 2023
CROSSREFS
Cf. A007091.
Sequence in context: A320687 A340494 A039567 * A123208 A179652 A253855
KEYWORD
nonn,base
AUTHOR
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 09:34 EDT 2024. Contains 371779 sequences. (Running on oeis4.)