

A109688


Smallest square that contains exactly n occurrences of the string n.


0




OFFSET

0,3


LINKS

Table of n, a(n) for n=0..9.


EXAMPLE

a(2)=225=15^2 since this is the first square that contains two 2's.


MATHEMATICA

With[{sqs=Range[0, 3100000]^2}, Flatten[Table[Select[sqs, DigitCount[#, 10, n] == n&, 1], {n, 9}]]] (* Harvey P. Dale, May 04 2012 *)


CROSSREFS

Sequence in context: A171109 A239478 A304314 * A195277 A319944 A013757
Adjacent sequences: A109685 A109686 A109687 * A109689 A109690 A109691


KEYWORD

base,more,nonn


AUTHOR

Erich Friedman, Aug 07 2005


EXTENSIONS

Corrected and extended by Giovanni Resta, Apr 05 2006


STATUS

approved



