some arithmetic problems
merged