Technical & Scientific > Programming
Gaaaah! Stupid question.
Rob:
My maths sucks since I got old :(
(That's a lie - It's always sucked) :rofl:
Jake:
Impressive, Perspective! See, Rob, you should stop by more often
Perspective:
--- Quote from: RobR on June 13, 2019, 11:08:17 AM ---See, I knew it was simple. Thanks Perspective. Have a virtual beer.
Props++
Just out of interest, what was your approach, or was it obvious?
--- End quote ---
Well, ignoring the shift in the input to output (from 14 to 69 etc..), you basically just want to output a number 4 times, then increase that number by 4. So integer division (by 4) gives you the "epoch" you're at (how many times have I incremented by 4). Multiply that by 4 and you get the factor you should add. Then you add the two shifts, input starting at 14 and output starting at 69.
Perspective:
--- Quote from: charlie on June 13, 2019, 11:08:32 AM ---Six minutes, twenty two seconds is pretty impressive.
Mostly for being on esink and seeing the question that quickly. ;)
--- End quote ---
Yeah, the timing was pretty good. I just happened to have stopped by for my (second) morning coffee. And since Micah's update was light I had some extra time on my hands :D
micah:
Glad I could free up some time for you.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version