Post Reply 
OEIS A228297: Need Help to Find Algorithm
09-18-2017, 11:39 AM
Post: #13
RE: OEIS A228297: Need Help to Find Algorithm
This Lua program seems to produce the correct sequence:

Code:
for i = 1, 10000 do
    k = 1
    repeat
        print(i)
        k = k * 5
    until i % k ~= 0
end

Conversion to a calculator is left as an exercise Smile
The % operation is mod or remainder.


Pauli
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: OEIS A228297: Need Help to Find Algorithm - Paul Dale - 09-18-2017 11:39 AM



User(s) browsing this thread: 2 Guest(s)