mersenneforum.org Request for an equation.
 Register FAQ Search Today's Posts Mark Forums Read

 2004-09-19, 18:56 #1 Logic   8,233 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. The numbers must be greater or equal to n. The first series of numbers, must compose of n whole numbers after n. After the first, and each series of numbers, n numbers must be excluded, followed by n series of numbers, and so on.. 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 marc     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

 Similar Threads Thread Thread Starter Forum Replies Last Post flouran Math 7 2009-12-12 18:48 davar55 Puzzles 3 2008-10-09 00:35 Vijay Math 6 2005-04-14 05:19 jasong Math 2 2005-03-11 03:30 koal Puzzles 3 2003-07-03 11:58

All times are UTC. The time now is 15:35.

Sun Jan 17 15:35:17 UTC 2021 up 45 days, 11:46, 0 users, load averages: 2.46, 2.54, 2.44