The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A182758 a(1) = 1, a(2) = 2, for n >= 3; a(n) = the smallest number h > a(n-1) such that [[a(n-2) + a(n-1)] * [a(n-2) + a(n)] * [a(n-1) + a(n)]] / [a(n-2) + a(n-1) + a(n)] is an integer. 2
1, 2, 3, 5, 7, 8, 9, 17, 25, 28, 47, 65, 70, 75, 105, 120, 125, 130, 135, 185, 220, 255, 273, 288, 297, 306, 315, 324, 333, 342, 351, 360, 369, 378, 387, 396, 405, 414, 423, 432, 441, 450, 459, 468, 477, 486, 495, 504, 513, 522, 531, 540, 549, 558, 567, 576 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..10000 (terms 1..1000 from Harvey P. Dale)
EXAMPLE
For n = 5; a(3) = 3, a(4) = 5, a(5) = 7 before [(3+5)*(3+7)*(5+7)] / (3+5+7) = 64 (integer).
MATHEMATICA
nxt[{a_, b_}]:=Module[{h=b+1}, While[!IntegerQ[((a+b)(a+h)(b+h))/ (a+b+h)], h++]; {b, h}]; Transpose[NestList[nxt, {1, 2}, 40]][[1]] (* Harvey P. Dale, Dec 13 2012 *)
PROG
(Sage)
works = lambda a, h: ((a[-2]+a[-1])*(a[-2]+h)*(a[-1]+h)/(a[-2]+a[-1]+h)).is_integral()
a = [1, 2]
for n in range(3, 100):
a += [next(h for h in IntegerRange(a[-1]+1, infinity) if works(a, h))]
print(a)
# D. S. McNeil, Nov 28 2010
CROSSREFS
Cf. A182759.
Sequence in context: A171614 A029601 A290985 * A274768 A272667 A076385
KEYWORD
nonn
AUTHOR
Jaroslav Krizek, Nov 28 2010
EXTENSIONS
More terms from Harvey P. Dale, Dec 13 2012
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 June 6 04:28 EDT 2024. Contains 373115 sequences. (Running on oeis4.)