login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A086010
Number of 2's in decimal expansion of n^2.
11
0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 2, 1, 1, 1, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 2, 1, 0, 0, 1, 0, 0, 0, 0, 0, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 2, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0
OFFSET
0,16
LINKS
MATHEMATICA
DigitCount[(Range[0, 100])^2, 10, 2] (* G. C. Greubel, Dec 13 2016 *)
PROG
(PARI) A086010(n)=#select(d->d==2, digits(n^2)) \\ M. F. Hasler, Feb 21 2016
CROSSREFS
Cf. 0's A086008, 1's A086009, 3's A086011, 4's A086012, 5's A086013, 6's A086014, 7's A086015, 8's A086016, 9's A086017.
Cf. A269242 for the n^3 analog.
Sequence in context: A309048 A086072 A086009 * A321929 A089198 A059607
KEYWORD
base,nonn
AUTHOR
Jason Earls, Jul 07 2003
STATUS
approved