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!)
A337753 The number of n-digit numbers which are divisible by 3 and where all decimal digits are odd. 0
2, 8, 41, 208, 1042, 5209, 26042, 130208, 651041, 3255208, 16276042, 81380209, 406901042, 2034505208, 10172526041, 50862630208, 254313151042, 1271565755209, 6357828776042, 31789143880208, 158945719401041, 794728597005208, 3973642985026042, 19868214925130209 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
FORMULA
3*a(n) = 5^n+A057079(n+1).
a(n) = 6*a(n-1)-6*a(n-2)+5*a(n-3).
G.f.: x*(2-4*x+5*x^2) / ( (1-5*x)*(x^2-x+1) ).
EXAMPLE
a(1) = 2 is the cardinality of the set {3,9}.
a(2) = 8 is the cardinality of the set {15, 33, 39, 51, 57, 75, 93, 99}.
MATHEMATICA
CoefficientList[Series[(2 - 4*x + 5*x^2)/((1 - 5*x)*(x^2 - x + 1)), {x, 0, 30}], x] (* Wesley Ivan Hurt, Nov 07 2020 *)
CROSSREFS
Cf. A057079.
Sequence in context: A012534 A092354 A254399 * A340992 A348474 A060436
KEYWORD
nonn,easy,base
AUTHOR
R. J. Mathar, Sep 21 2020
STATUS
approved

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 28 21:55 EDT 2024. Contains 371254 sequences. (Running on oeis4.)