login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A032828 Numbers whose set of base 16 digits is {1,4}. 1
1, 4, 17, 20, 65, 68, 273, 276, 321, 324, 1041, 1044, 1089, 1092, 4369, 4372, 4417, 4420, 5137, 5140, 5185, 5188, 16657, 16660, 16705, 16708, 17425, 17428, 17473, 17476, 69905, 69908, 69953, 69956, 70673, 70676, 70721 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

Vincenzo Librandi, Table of n, a(n) for n = 1..1000

Index entries for 2-automatic sequences.

FORMULA

a(1)=1, a(2)=4; a(n) = 16*a(floor(n/2))+1 for n odd, otherwise a(n) = 16*a(floor((n-1)/2))+4. - Bruno Berselli, May 28 2012

MATHEMATICA

FromDigits[#, 16]&/@Flatten[Table[Tuples[{1, 4}, n], {n, 5}], 1] (* Harvey P. Dale, Feb 02 2012 *)

PROG

(MAGMA) [n: n in [1..75000] | Set(IntegerToSequence(n, 16)) subset {1, 4}]; // Vincenzo Librandi, May 28 2012

(Maxima) a[1]:1$ a[2]:4$ a[n]:= if oddp(n) then 16*a[floor(n/2)]+1 else 16*a[floor((n-1)/2)]+4$ makelist(a[n], n, 1, 37); - Bruno Berselli, May 28 2012

CROSSREFS

Sequence in context: A031033 A128981 A212748 * A193379 A022134 A041529

Adjacent sequences:  A032825 A032826 A032827 * A032829 A032830 A032831

KEYWORD

nonn,base,easy

AUTHOR

Clark Kimberling

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified November 22 16:31 EST 2019. Contains 329396 sequences. (Running on oeis4.)