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!)
A169967 Numbers whose decimal expansion contains only 0's and 4's. 14

%I #27 Jan 26 2020 21:02:39

%S 0,4,40,44,400,404,440,444,4000,4004,4040,4044,4400,4404,4440,4444,

%T 40000,40004,40040,40044,40400,40404,40440,40444,44000,44004,44040,

%U 44044,44400,44404,44440,44444,400000,400004,400040,400044,400400,400404,400440,400444

%N Numbers whose decimal expansion contains only 0's and 4's.

%H Reinhard Zumkeller, <a href="/A169967/b169967.txt">Table of n, a(n) for n = 1..10000</a>

%H <a href="/index/Ar#10-automatic">Index entries for 10-automatic sequences</a>.

%F a(n+1) = Sum_{k>=0} A030308(n,k)*A093141(k+1). - _Philippe Deléham_, Oct 16 2011

%F a(n) = 4 * A007088(n-1).

%t FromDigits/@Tuples[{0,4},6] (* _Harvey P. Dale_, Dec 21 2018 *)

%o (PARI) print1(0);for(d=1,5,for(n=2^(d-1),2^d-1,print1(", ");forstep(i=d-1,0,-1,print1((n>>i)%2*4)))) \\ _Charles R Greathouse IV_, Nov 16 2011

%o (Haskell)

%o a169967 n = a169967_list !! (n-1)

%o a169967_list = map (* 4) a007088_list

%o -- _Reinhard Zumkeller_, Jan 10 2012

%Y Cf. A007088, A014263, A093141, A169964, A169965, A169966, A078243, A204093, A204094, A204095, A097256.

%K nonn,base,easy

%O 1,2

%A _N. J. A. Sloane_, Aug 07 2010

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 March 29 01:34 EDT 2024. Contains 371264 sequences. (Running on oeis4.)