OFFSET
1,1
COMMENTS
A necessary condition for there to be terms where k-8 has d digits is that -23 is a quadratic residue mod 10^d + 1. The corresponding solutions are k = (y^2 + 3*y + 8)/(10^d+1) where y^2 + 3*y + 8 is divisible by 10^d + 1 and 10^(d-1) <= k - 8 < 10^d. The only d < 358 that work are 2, 46, and 178. - Robert Israel, Sep 30 2025
LINKS
Robert Israel, Table of n, a(n) for n = 1..24
John Brillhart et al., Cunningham Project [Factorizations of b^n +- 1, b = 2, 3, 5, 6, 7, 10, 11, 12 up to high powers]
EXAMPLE
58//50 = 75 * 78, where // denotes concatenation.
MAPLE
Res:= NULL: count:= 0:
for d from 1 to 100 do
F:= select(type, ifactors(10^d+1, easy)[2][.., 1], integer);
if not andmap(t -> numtheory:-quadres(-23, t) = 1, F) then next fi;
M:= map(t -> rhs(op(t)), [msolve(y^2 + 3*y + 8, 10^d + 1)]);
for yy in M do
kk:= (yy^2 + 3*yy + 8)/(10^d + 1);
if kk >= 8 + 10^(d-1) and kk < 8 + 10^d then
Res:= Res, kk; count:= count+1;
fi
od;
od:
sort([Res]); # Robert Israel, Sep 30 2025
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Giovanni Resta, Feb 06 2006
STATUS
approved
