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!)
A032916 Numbers whose set of base-9 digits is {1,3}. 1
1, 3, 10, 12, 28, 30, 91, 93, 109, 111, 253, 255, 271, 273, 820, 822, 838, 840, 982, 984, 1000, 1002, 2278, 2280, 2296, 2298, 2440, 2442, 2458, 2460, 7381, 7383, 7399, 7401, 7543, 7545, 7561, 7563, 8839, 8841, 8857, 8859, 9001 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
MATHEMATICA
Flatten[Table[FromDigits[#, 9]&/@Tuples[{1, 3}, n], {n, 5}]] (* Vincenzo Librandi, Jun 01 2012 *)
PROG
(Magma) [n: n in [1..10000] | Set(IntegerToSequence(n, 9)) subset {1, 3}]; // Vincenzo Librandi, Jun 01 2012
(Python)
def A032916(n): return (int(bin(m:=n+1)[3:], 9)<<1) + (9**(m.bit_length()-1)-1>>3) # Chai Wah Wu, Oct 13 2023
CROSSREFS
Cf. A007095.
Sequence in context: A179203 A371476 A102017 * A044994 A242900 A358266
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 19 19:02 EDT 2024. Contains 371798 sequences. (Running on oeis4.)