The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A032915 Numbers whose set of base-8 digits is {1,3}. 1
1, 3, 9, 11, 25, 27, 73, 75, 89, 91, 201, 203, 217, 219, 585, 587, 601, 603, 713, 715, 729, 731, 1609, 1611, 1625, 1627, 1737, 1739, 1753, 1755, 4681, 4683, 4697, 4699, 4809, 4811, 4825, 4827, 5705, 5707, 5721, 5723, 5833, 5835 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
MATHEMATICA
Flatten[Table[FromDigits[#, 8]&/@Tuples[{1, 3}, n], {n, 5}]] (* Vincenzo Librandi, Jun 01 2012 *)
PROG
(Magma) [n: n in [1..6000] | Set(IntegerToSequence(n, 8)) subset {1, 3}]; // Vincenzo Librandi, Jun 01 2012
(Python)
def A032915(n): return (int(bin(m:=n+1)[3:], 8)<<1) + ((1<<3*(m.bit_length()-1))-1)//7 # Chai Wah Wu, Oct 13 2023
CROSSREFS
Sequence in context: A302422 A032665 A331832 * A019080 A060141 A107757
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 June 13 09:03 EDT 2024. Contains 373383 sequences. (Running on oeis4.)