2004-09-19, 18:56 | #1 |
7×673 Posts |
Request for an equation.
Let me start off by saying, I am terrible at math. I'm not even sure if I know how to explain this for you to understand, but here goes.
I am trying to obtain an equation for series of numbers, with a repeating pattern.
ex. n = 4 would result in... 4, 5, 6, 7, 12, 13, 14, 15, 20, 21, 22, 23.... n = 2 2, 3, 6, 7, 10, 11... Thanks a lot in advance. |
2004-09-19, 21:26 | #2 |
Jun 2004
UK
139 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 |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Diophantine Equation | flouran | Math | 7 | 2009-12-12 18:48 |
An Equation to Solve | davar55 | Puzzles | 3 | 2008-10-09 00:35 |
Possible solutions to an equation: | Vijay | Math | 6 | 2005-04-14 05:19 |
Time to prp equation | jasong | Math | 2 | 2005-03-11 03:30 |
Cuberoot Equation | koal | Puzzles | 3 | 2003-07-03 11:58 |