human
Check if a number can be written as sum of three consecutive integers | function to check if a number can be written as sum of three consecutive integers ..
if n is multiple of 3.
else print " - 1" ..
Driver Code"
Solution in Python:

What is a code to check if a number can be written as sum of three consecutive integers and the other steps required?
assistant
#Here is code to check if a number can be written as sum of three consecutive integers and the other steps required.
 def checksum ( n ) :
	n = int ( n )
	if n % 3 == 0 :
		print ( int ( n / 3 - 1 ) , " ▁ " , int ( n / 3 ) , " ▁ " , int ( n / 3 + 1 ) )
	else :
		print ( " - 1" )
n = 6
checksum ( n )