OFFSET
3,1
COMMENTS
Let A166133 = B; A166133 is defined as: After b(1)=1, b(2)=2, and b(3)=4, b(n+1) is the smallest divisor of b(n)^2-1 that has not yet appeared in the sequence.
A256557(n) = A166133(n)^2-1. Therefore, a(n) = (A166133(n)^2-1)/A166133(n+1), n>=3; that is, a(n) is A256557(n) divided by the smallest divisor of A166133(n+1)^2-1 which has not yet appeared in A166133. For example, a(12) = 5 means that 5 is A256557(12) = A166133(12)^2-1 = 80 divided its smallest divisor which has not yet appeared in A166133 (i.e., 16).
MATHEMATICA
lim = 200; s = {1, 2, 4}; Do[d = Divisors[Last[s]^2 - 1]; i = 1; While[i <= Length[d] && MemberQ[s, d[[i]]], i++]; s = Append[s, d[[i]]], {lim}]; a166133 = Table[s[[k]], {k, 1, lim}]; a256557 = #^2 - 1 & /@ a166133; t = PadLeft[Most@a256557, lim]; Drop[t/a166133, 3] (* Michael De Vlieger, Apr 02 2015, after Hans Havermann at A166133 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Bob Selcoe, Apr 01 2015
STATUS
approved