OFFSET
1,1
LINKS
Felix Huber, Table of n, a(n) for n = 1..10000
Wikipedia, Arithmetic Progression
Wikipedia, Geometric Progression
FORMULA
EXAMPLE
a(9) = 25 because 9, 17, 25 are in arithmetic progression (common difference = 8) and 9, +-15, 25 are in geometric progression (common ratio = +-5/3) and there is no other integer k with 9 < k < 25 such that integers p and q exist for which 9, p, k are in arithmetic and 9, q, k are in geometric progression.
MAPLE
CROSSREFS
KEYWORD
nonn,new
AUTHOR
Felix Huber, Jan 07 2025
STATUS
approved