Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A061844
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A061844 Squares which remain squares if you decrease every digit by 1. +0
2
1, 36, 3136, 24336, 5973136, 71526293136, 318723477136, 264779654424693136, 24987377153764853136, 31872399155963477136, 58396845218255516736, 517177921565478376336, 252815272791521979771662766736 (list; graph; listen)
OFFSET

1,2

COMMENT

The terms may be calculated efficiently by solving x^2 - y^2 = 111...1; this is done by factoring 111..1 = (x + y)(x - y).

EXAMPLE

E.g. 13225 = 115^2 and 24336 = 156^2.

MATHEMATICA

For[digits = 1, digits <= 30, digits++, n = (10^digits - 1)/9; divList = Select[Divisors[n], (#1 >= Sqrt[n])&];

For[j = 1, j <= Length[divList], j++, x = (divList[[j]] + n/divList[[j]])/2; y = (divList[[j]] - n/divList[[j]])/2;

dx = IntegerDigits[x^2]; dy = IntegerDigits[y^2];

If[(Length[dx] == digits) && (Length[dy] == digits) && (Select[dx, (#1 == 0)&] == {}), Print[x^2]]]]

CROSSREFS

Sequence in context: A120466 A159728 A004706 this_sequence A036510 A034983 A072377

Adjacent sequences: A061841 A061842 A061843 this_sequence A061845 A061846 A061847

KEYWORD

base,nonn,nice

AUTHOR

Erich Friedman (efriedma(AT)stetson.edu), Jun 23 2001

EXTENSIONS

More terms and program from Jonathan Cross (jcross(AT)wcox.com), Oct 08 2001

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 16 17:18 EST 2009. Contains 170825 sequences.


AT&T Labs Research