The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A032819 Numbers whose set of base 7 digits is {1,4}. 1
 1, 4, 8, 11, 29, 32, 57, 60, 78, 81, 204, 207, 225, 228, 400, 403, 421, 424, 547, 550, 568, 571, 1429, 1432, 1450, 1453, 1576, 1579, 1597, 1600, 2801, 2804, 2822, 2825, 2948, 2951, 2969, 2972, 3830, 3833, 3851, 3854, 3977, 3980 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 LINKS Vincenzo Librandi, Table of n, a(n) for n = 1..1000 FORMULA a(1)=1, a(2)=4; a(n) = 7*a(floor(n/2))+1 for n odd, otherwise a(n) = 7*a(floor((n-1)/2))+4. - Bruno Berselli, May 28 2012 MATHEMATICA Select[Range[4000], MemberQ[{{1}, {4}, {1, 4}}, Union[IntegerDigits[ #, 7]]]&]  (* Harvey P. Dale, Apr 04 2011 *) Flatten[Table[FromDigits[#, 7]&/@Tuples[{1, 4}, n], {n, 5}]] (* Vincenzo Librandi, May 28 2012 *) Select[Range[3980], Complement[IntegerDigits[#, 7], {1, 4}]{}&] (* Zak Seidov, May 28 2012 *) PROG (MAGMA) [n: n in [1..4000] | Set(IntegerToSequence(n, 7)) subset {1, 4}]; // Vincenzo Librandi, May 28 2012 (Maxima) a[1]:1\$ a[2]:4\$ a[n]:= if oddp(n) then 7*a[floor(n/2)]+1 else 7*a[floor((n-1)/2)]+4\$ makelist(a[n], n, 1, 44); - Bruno Berselli, May 28 2012 CROSSREFS Sequence in context: A220753 A166550 A219747 * A181684 A126006 A164088 Adjacent sequences:  A032816 A032817 A032818 * A032820 A032821 A032822 KEYWORD nonn,base,easy 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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified August 4 16:34 EDT 2020. Contains 336202 sequences. (Running on oeis4.)