View Single Post
Old 2020-11-12, 09:59   #7
Alberico Lepore
 
Alberico Lepore's Avatar
 
May 2017
ITALY

3·7·23 Posts
Default

this is the best logarithmic implementation I could think of.
I leave the implementation to you expert programmers


pure logarithm

N=507


3*(((2*190-3*y+1)/24)+3*x*(x+1)/2)+1=A
,
190=3*x*(x+1)/2-3*y*(y-1)/2+(3*x+1)*(3*x+2)/2
,
3*(((2*A-3*a+1)/24)+3*x*(x+1)/2)+1=B
,
A+3*a*(a-1)/2=12*x*(x+1)/2+1
,
3*(((2*B-3*b+1)/24)+3*x*(x+1)/2)+1=C
,
B+3*b*(b-1)/2=12*x*(x+1)/2+1
,
3*(((2*C-3*c+1)/24)+3*x*(x+1)/2)+1=C
,
c=1
,A,B,C,x,y>0

Last fiddled with by Alberico Lepore on 2020-11-14 at 13:37 Reason: ,A,B,C,x,y>0
Alberico Lepore is offline   Reply With Quote