Search found 2 matches
- Mon Feb 13, 2017 1:08 am
- Forum: Challenges Solved
- Topic: Growing Bacteria
- Replies: 24
- Views: 2888
I used two Fibonacci sequences {1,2,3,5,8,13..} First sequence is representing number of daily born (add to total living), and second sequence starts at the 5th day, and representing count of dead (subtract from total living). fib_born = [0, 1] fib_dead = [0, 1] day = 1 living_count = 0 while living...
- Sat Feb 11, 2017 1:57 am
- Forum: Challenges Solved
- Topic: countdown calc
- Replies: 20
- Views: 1630
Code: Select all
# Formula in Python
# ((4*4+5)*(num**5)) + ((num-10)*(5*(num**4)))
((4*4+5)*(99**5)) + ((99-10)*(5*(99**4))) = 242454432924
Nice challenge.