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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A139565 Squares whose sum of digits minus 1 and product of digits plus 1 are both squares. 0
64, 187489, 529984, 2982529, 6165289, 45819361, 55279225, 59613841, 85914361, 89151364, 114297481, 118417924, 181252369, 183196225, 223981156, 231861529, 411197284, 446519161, 582691321, 599221441, 644195161, 876811321, 941814721 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

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

Matthew M. Conroy, Worst proof ever

EXAMPLE

64 -> 6+4-1=9 (3) and 6*4+1=25 (5)

187489 -> 1+8+7+4+8+9-1=36 (6) and 1*8*7*4*8*9+1=16129 (127)

MAPLE

P:=proc(n) local i, k, w, y; for i from 1 by 1 to n do w:=0; k:=i^2; while k>0 do w:=w+k-(trunc(k/10)*10); k:=trunc(k/10); od; w:=w-1; y:=1; k:=i^2; while k>0 do y:=y*(k-(trunc(k/10)*10)); k:=trunc(k/10); od; y:=y+1; if w=trunc(sqrt(w))^2 and y=trunc(sqrt(y))^2 and y>1 then print(i^2); fi; od; end: P(50000);

CROSSREFS

Sequence in context: A016878 A029753 A036533 * A214388 A016938 A017010

Adjacent sequences:  A139562 A139563 A139564 * A139566 A139567 A139568

KEYWORD

easy,nonn,base

AUTHOR

Paolo P. Lava and Giorgio Balzarotti, Jun 11 2008

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified May 21 19:04 EDT 2013. Contains 225504 sequences.