OFFSET
1,1
COMMENTS
Any elliptic curve can be written as a plane algebraic curve defined by an equation of the form: y^2 = x^3 + ax + b.
LINKS
Robin Visser, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Elliptic Curve Group Law.
FORMULA
a(n) = 1+A098514(n), which does not count (oo,oo). - R. J. Mathar, Jun 29 2011
EXAMPLE
Example : a(8) = 21 because, for n = 8, prime(8) = 19, and the field F(19) has 21 elements :(19, 1), (10, 2), (14, 2), (7, 3), (15, 3), (16, 3), (5, 6), (9, 6), (2, 7), (13, 8), (13, 11), (2, 12), (5, 13), (9, 13), (7, 16), (15, 16), (16, 16), (10, 17), (14, 17), (19,18) and the point at infinity.
MAPLE
with(numtheory):for n from 1 to 100 do:p:=ithprime(n):it:=0:for y from 1 to p do:for x from 1 to p do:z:=x^3+x+1:z1:=irem(z, p):z2:=irem(y^2, p):if z1=z2 then it:=it+1:else fi:od:od: printf(`%d, `, it+1): od:
MATHEMATICA
Reap[ For[ n=1, n <= 60 , n++, p = Prime[n]; it=0; For[ y=1 , y <= p , y++, For[ x=1 , x <= p , x++, z = x^3+x+1; z1 = Mod[z, p]; z2 = Mod[y^2, p]; If[ z1 == z2 , it = it+1]]]; Sow[it+1]]][[2, 1]](* Jean-François Alcover, Jun 11 2012, translated from Maple *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Lagneau, Jun 28 2011
STATUS
approved