Southperry.net
Count up in a somewhat complex way - Printable Version

+- Southperry.net (https://www.southperry.net)
+-- Forum: Social (https://www.southperry.net/forumdisplay.php?fid=14)
+--- Forum: Forum Games & Unofficial Activities/Events (https://www.southperry.net/forumdisplay.php?fid=56)
+--- Thread: Count up in a somewhat complex way (/showthread.php?tid=44744)

Pages: 1 2 3


Count up in a somewhat complex way - octopusprime - 2011-07-25

301 + 9

Sonufabitch.


Count up in a somewhat complex way - Baklava - 2011-07-25

100 + 100 + 100 + 5 + 5 + 1


Count up in a somewhat complex way - octopusprime - 2011-07-25

2^6×5

I like where this is going.


Count up in a somewhat complex way - Noah - 2011-07-25

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


Count up in a somewhat complex way - Shidoshi - 2011-07-25

The idea was shamelessly stolen from another site, the xkcd forums.

1000


Count up in a somewhat complex way - Fius - 2011-07-25

..1001?
 Spoiler



Count up in a somewhat complex way - Unauthorized Intruder - 2011-07-25

1010


Count up in a somewhat complex way - Shidoshi - 2011-07-25

1011


Count up in a somewhat complex way - shouri - 2011-07-25

1020


Count up in a somewhat complex way - Holypie - 2011-07-25

1021 I hope


Count up in a somewhat complex way - octopusprime - 2011-07-25

1300


Count up in a somewhat complex way - Shidoshi - 2011-07-26

octopusprime Wrote:1300

urdoinitwrong

1101 (correct counting)


Count up in a somewhat complex way - octopusprime - 2011-07-26

Shidoshi Wrote:urdoinitwrong

1101 (correct counting)

1300 IT WILL BE RIGHT EVENTUALLY

1111


Count up in a somewhat complex way - Turtally - 2011-07-26

1120, I think.


Count up in a somewhat complex way - octopusprime - 2011-07-26

1121


Count up in a somewhat complex way - Turtally - 2011-07-26

1200


Count up in a somewhat complex way - sicnarf - 2011-07-27

1201


Count up in a somewhat complex way - Turtally - 2011-07-27

1210


Count up in a somewhat complex way - Shidoshi - 2011-07-28

1211

your cue, octopus.


Count up in a somewhat complex way - Unauthorized Intruder - 2011-07-28

1220