Inventory sequence: Difference between revisions

Content added Content deleted
m (greater than or equal to)
m (Doh. rework example)
Line 7: Line 7:
:Start taking inventory; how many '''0'''s are there? '''0'''. Add a '''0''' to the end of the sequence and restart the inventory. '''(0)'''
:Start taking inventory; how many '''0'''s are there? '''0'''. Add a '''0''' to the end of the sequence and restart the inventory. '''(0)'''


:How many '''0'''s are there? '''1'''. Add a '''1''' to the end of the sequence. How many '''1'''s are there? '''0'''. Add a '''0''' to the end of the sequence and restart the inventory. '''(0 1)'''
:How many '''0'''s are there? '''1'''. Add a '''1''' to the end of the sequence. How many '''1'''s are there? '''1'''. Add a '''1''' to the end of the sequence. How many '''2'''s are there? '''0'''. Add a '''0''' to the end of the sequence and restart the inventory. '''(0 1 1 0)'''

:How many '''0'''s are there? '''1'''. Add a '''1''' to the end of the sequence. How many '''1'''s are there? '''1'''. How many '''2'''s are there? '''0'''. Add a '''0''' to the end of the sequence and restart the inventory. '''(0 1 1 0)'''


:''and so on.''
:''and so on.''