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!)
A284920 Numbers with digits 2 and 4 only. 6

%I #14 Sep 08 2022 08:46:19

%S 2,4,22,24,42,44,222,224,242,244,422,424,442,444,2222,2224,2242,2244,

%T 2422,2424,2442,2444,4222,4224,4242,4244,4422,4424,4442,4444,22222,

%U 22224,22242,22244,22422,22424,22442,22444,24222,24224,24242,24244,24422,24424

%N Numbers with digits 2 and 4 only.

%C All terms are even.

%F a(n) = 2 * A007931(n).

%t Flatten@ Array[FromDigits /@ Tuples[{2, 4}, #] &, 5] (* _Michael De Vlieger_, Apr 06 2017 *)

%o (Magma) [n: n in [1..100000] | Set(IntegerToSequence(n, 10)) subset {2, 4}]

%Y Cf. Numbers with digits 2 and k only for k = 0 - 1 and 3 - 9: A169965 (k = 0), A007931 (k = 1), A032810 (k = 3), this sequence (k = 4), A072961 (k = 5), A284632 (k = 6), A284921 (k = 7), A284922 (k = 8), A284923 (k = 9).

%K nonn,base

%O 1,1

%A _Jaroslav Krizek_, Apr 05 2017

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 16 14:46 EDT 2024. Contains 371749 sequences. (Running on oeis4.)