human
Check if a number is Triperfect Number | Returns true if n is Triperfect.
To store sum of divisors . Adding 1 and n since they are divisors of n ..
Find all divisors and add them.
If sum of divisors is equal to 3 * n , then n is a Triperfect number.
Driver program"
Solution in Python:
 ... Write me a code to check if a number is Triperfect Number and the other steps required?
assistant
#Here is code to check if a number is Triperfect Number and the other steps required.
 def isTriPerfect ( n ) :
	sum = 1 + n
	i = 2
	while i * i <= n :
		if n % i == 0 :
			if n / i == i :
				sum = sum + i
			else :
				sum = sum + i + n / i
		i += 1
	return ( True if sum == 3 * n and n != 1 else False )
n = 120
if isTriPerfect ( n ) :
	print ( n , " is ▁ a ▁ Triperfect ▁ number " )