Count up in a somewhat complex way
#21
301 + 9

Sonufabitch.
Reply
#22
100 + 100 + 100 + 5 + 5 + 1
Reply
#23
2^6×5

I like where this is going.
Reply
#24
Ah, the factorial number system! Used to map a single number n to a single permutation of an array. Been used quite much, actually. It's a good tool.

321

Code:
def toFNS(n):
    k = 0
    while fact(k) <= n:
        k += 1
    indexList = []
    numberList = range(k).reversed()
    for x in numberList:
        quot = n // fact(x)
        indexList.append(quot)
        n %= fact(x)
    return indexList

Noah
Reply
#25
The idea was shamelessly stolen from another site, the xkcd forums.

1000
Reply
#26
..1001?
 Spoiler
Reply
#27
1010
Reply
#28
1011
Reply
#29
1020
Reply
#30
1021 I hope
Reply
#31
1300
Reply
#32
octopusprime Wrote:1300

urdoinitwrong

1101 (correct counting)
Reply
#33
Shidoshi Wrote:urdoinitwrong

1101 (correct counting)

1300 IT WILL BE RIGHT EVENTUALLY

1111
Reply
#34
1120, I think.
Reply
#35
1121
Reply
#36
1200
Reply
#37
1201
Reply
#38
1210
Reply
#39
1211

your cue, octopus.
Reply
#40
1220
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)