login
This site is supported by donations to The OEIS Foundation.

 

Logo

Please make a donation to keep the OEIS running. We are now in our 55th year. In the past year we added 12000 new sequences and reached 8000 citations (which often say "discovered thanks to the OEIS"). We need to raise money to hire someone to manage submissions, which would reduce the load on our editors and speed up editing.
Other ways to donate

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A218072 Product of the nonzero digits (in base 10) of n^2. 6
1, 4, 9, 6, 10, 18, 36, 24, 8, 1, 2, 16, 54, 54, 20, 60, 144, 24, 18, 4, 16, 128, 90, 210, 60, 252, 126, 224, 32, 9, 54, 8, 72, 30, 20, 108, 162, 64, 10, 6, 48, 168, 288, 162, 20, 12, 36, 24, 8, 10, 12, 56, 144, 108, 30, 54, 216, 216, 96, 18, 42, 384, 1458 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

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

EXAMPLE

a(32) = 8 because 32*32 = 1024 and 1*2*4 = 8.

MATHEMATICA

Table[Times@@(IntegerDigits[n^2]/.(0->1)), {n, 120}] (* Harvey P. Dale, Dec 12 2017 *)

PROG

(PARI) a(n) = {digs = digits(n^2); prod(i=1, #digs, if (digs[i], digs[i], 1)); } \\ Michel Marcus, Aug 12 2013

CROSSREFS

Similar to A053667, which does not exclude zero digits from the product. Related to A218013.

Sequence in context: A264264 A089390 A053667 * A261023 A171095 A075065

Adjacent sequences:  A218069 A218070 A218071 * A218073 A218074 A218075

KEYWORD

nonn,base

AUTHOR

Nels Olson, Oct 19 2012

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 December 6 16:24 EST 2019. Contains 329808 sequences. (Running on oeis4.)