variable to store sum of all integers from i to j and check if sum and concatenation equals n or not
sum = 0 NEW_LINE for j in range ( i , n ) : NEW_LINE INDENT sum += j NEW_LINE if ( sum == n ) : NEW_LINE DEDENT