OFFSET
1,2
COMMENTS
This sequence starts chaotic but makes a sudden transition into a linear recurrence for n > 433. For details see the formula section. - Thomas Scheuerle, Dec 13 2022
LINKS
Neal Gersh Tolunsky, Table of n, a(n) for n = 1..600
Thomas Scheuerle, Scatter plot log(a(n)) for n = 1...650
FORMULA
From Thomas Scheuerle, Dec 13 2022: (Start)
a(534+(k+1)*3) = 2*a(534+k*3)-1 for k >= 0 and a(534) = 555.
a(535+(k+1)*3) = 2*a(535+k*3)+1 for k >= 0 and a(535) = 2214.
a(536+(k+1)*3) = 2*a(536+k*3)+2 for k >= 0 and a(536) = 3322. (End)
EXAMPLE
a(3) is 6: The difference between the two previous terms is 1 and 2*3=6 is the smallest number that is the product of two numbers with a difference of 1.
PROG
(MATLAB)
function a = A359035( max_n )
a = [1 2];
for n = 3:max_n
m = 1; d = abs(a(n-1)-a(n-2));
while ~isempty(find(a==(m*(m+d)), 1))
m = m+1;
end
a(n) = m*(m+d);
end
end % Thomas Scheuerle, Dec 13 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Neal Gersh Tolunsky, Dec 12 2022
STATUS
approved