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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A032818 Numbers whose set of base 6 digits is {1,4}. 1
1, 4, 7, 10, 25, 28, 43, 46, 61, 64, 151, 154, 169, 172, 259, 262, 277, 280, 367, 370, 385, 388, 907, 910, 925, 928, 1015, 1018, 1033, 1036, 1555, 1558, 1573, 1576, 1663, 1666, 1681, 1684, 2203, 2206, 2221, 2224, 2311, 2314, 2329 (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 6-automatic sequences.

FORMULA

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

MATHEMATICA

Flatten[Table[FromDigits[#, 6]&/@Tuples[{1, 4}, n], {n, 5}]] (* Vincenzo Librandi, May 27 2012 *)

PROG

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

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

CROSSREFS

Sequence in context: A024948 A296309 A182278 * A123986 A294914 A088405

Adjacent sequences:  A032815 A032816 A032817 * A032819 A032820 A032821

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 March 23 05:36 EDT 2019. Contains 321422 sequences. (Running on oeis4.)