First time we see a multiple of k
if ( fractionalNode == None ) : NEW_LINE INDENT fractionalNode = head NEW_LINE DEDENT else : NEW_LINE INDENT fractionalNode = fractionalNode . next NEW_LINE DEDENT i = i + 1 NEW_LINE temp = temp . next NEW_LINE return fractionalNode NEW_LINE