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!)
A100799 a(1) = 1, a(2) = 2, a(n) = product of nonzero digits of previous two terms. 0

%I #6 Jun 10 2023 13:11:54

%S 1,2,2,4,8,32,48,192,576,3780,35280,40320,5760,5040,4200,160,48,192,

%T 576,3780,35280,40320,5760,5040,4200,160,48,192,576,3780,35280,40320,

%U 5760,5040,4200,160,48,192,576,3780,35280,40320,5760,5040,4200,160,48

%N a(1) = 1, a(2) = 2, a(n) = product of nonzero digits of previous two terms.

%C Pattern of ten terms repeats beginning with a(7)=48.

%t nxt[{a_,b_}]:={b,Times@@Select[Flatten[IntegerDigits/@{a,b}],#>0&]}; NestList[nxt,{1,2},50][[;;,1]] (* or *) PadRight[{1,2,2,4,8,32},50,{35280,40320,5760,5040,4200,160,48,192,576,3780}] (* _Harvey P. Dale_, Jun 10 2023 *)

%K base,easy,nonn

%O 1,2

%A _Amarnath Murthy_, Dec 17 2004

%E Corrected and extended by _Ray Chandler_, Dec 19 2004

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 23 08:19 EDT 2024. Contains 371905 sequences. (Running on oeis4.)