OFFSET
1,2
LINKS
FORMULA
a(n) = a(n-1)*product of nonzero digits of a(n-1) (n >= 4). - Emeric Deutsch, Apr 15 2005
MAPLE
p:=proc(n) local pr, nn, j: pr:=1: nn:=convert(n, base, 10): for j from 1 to nops(nn) do if nn[j]>0 then pr:=pr*nn[j] else pr:=pr: fi: od: end: a:=proc(n) if n=1 then 1 elif n=2 then 2 elif n=3 then 2 else a(n-1)*p(a(n-1)) fi end: seq(a(n), n=1..14); # p(n) is the product of the nonzero digits of n # Emeric Deutsch, Apr 15 2005
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Feb 18 2004
EXTENSIONS
More terms from Emeric Deutsch, Apr 15 2005
STATUS
approved