login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo

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 59th year, we have over 358,000 sequences, and we’ve crossed 10,300 citations (which often say “discovered thanks to the OEIS”).

Other ways to Give
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A164770 Numbers k with the property that the average digit of k^2 is 2. 9
145, 152, 179, 190, 251, 3182, 3190, 3199, 3245, 3290, 3335, 3362, 3380, 3470, 3479, 3496, 3550, 3649, 3650, 3749, 3821, 4001, 4010, 4100, 4495, 4496, 4540, 4550, 4585, 4595, 4639, 4649, 4810, 4820, 4910, 4990, 5701, 5710, 5755, 5800, 5900, 6350, 6404 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

There are 6368 such k's < 10^7: see link to 15217.html.

LINKS

Harvey P. Dale, Table of n, a(n) for n = 1..2500

Zak Seidov, Average digit of n^2 is 2.

Zak Seidov, Case with trailing zeros.

EXAMPLE

145 is a term because 145^2 = 21025 and (2 + 1 + 0 + 2 + 5)/5 = 2.

MATHEMATICA

Select[Range[6500], Mean[IntegerDigits[#^2]]==2&] (* Harvey P. Dale, May 10 2021 *)

PROG

(PARI) dsum(n)={my(s=0); while(n>9, s+=n%10; n\=10); s+n}; for(n=1, 1e6, if(dsum(n^2)/#Str(n^2)==2, print1(n", ")))

CROSSREFS

Sequence in context: A099648 A043652 A296889 * A159777 A326258 A051414

Adjacent sequences: A164767 A164768 A164769 * A164771 A164772 A164773

KEYWORD

base,nonn,easy

AUTHOR

Zak Seidov, Aug 26 2009

EXTENSIONS

Program by Charles R Greathouse IV, Nov 01 2009

Edited by Charles R Greathouse IV, Mar 23 2010

STATUS

approved

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 December 5 01:43 EST 2022. Contains 358572 sequences. (Running on oeis4.)