Thread
:
Request for an equation.
View Single Post
2004-09-19, 21:26
#
2
marc
Jun 2004
UK
8B
_{16}
Posts
f(n,x) = n + 2*n*floor(x/n) + x%n
where n is your n and x is the xth number and x=0 is the first.
eg. f(4,0) = 4, f(2,2) = 6
marc
View Public Profile
Visit marc's homepage!
Find More Posts by marc