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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A284920 Numbers with digits 2 and 4 only. 6
2, 4, 22, 24, 42, 44, 222, 224, 242, 244, 422, 424, 442, 444, 2222, 2224, 2242, 2244, 2422, 2424, 2442, 2444, 4222, 4224, 4242, 4244, 4422, 4424, 4442, 4444, 22222, 22224, 22242, 22244, 22422, 22424, 22442, 22444, 24222, 24224, 24242, 24244, 24422, 24424 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

All terms are even.

LINKS

Table of n, a(n) for n=1..44.

FORMULA

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

MATHEMATICA

Flatten@ Array[FromDigits /@ Tuples[{2, 4}, #] &, 5] (* Michael De Vlieger, Apr 06 2017 *)

PROG

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

CROSSREFS

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).

Sequence in context: A151808 A151809 A151801 * A254221 A298471 A067654

Adjacent sequences:  A284917 A284918 A284919 * A284921 A284922 A284923

KEYWORD

nonn,base

AUTHOR

Jaroslav Krizek, Apr 05 2017

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 September 27 22:36 EDT 2020. Contains 337388 sequences. (Running on oeis4.)