""" UMBC 331 Spring 2010 HW7 -- YOURNAME HERE, YOURID@UMBC.EDU """ # Problem one def sum_mult_3_5(n): """ Return the sum of all of the natural numbers less than natural number n that are multiples of 3 or 5.""" pass # Problem two def hailstone(n): """ Given a positive integer n, returns the hailstone sequence starting with n as a list of integers. """ pass def even(n): """ returns true if n is an even integer""" pass # problem three def divisors(n): """ Returns a list of integers that are proper divisors of its argument, which is assumed to be a positive integer. e.g., divisors(11) => [1], divsors(20) => [1, 2, 4, 5, 10] """ pass def amicable(n): """ Tests positive intern n to see if it is part of an amicable pair of numbers, returning 0 if not and the other number in the pair if true. e.g., amicable(12) => 0, amicable(220)=> 284 """ pass def amicable_pairs_between(min, max): """ Returns a list of tuples of amicable pairs (n,m) such that min < n < m < max. e.g.. amicable_pairs_between(1,100) => [], amicable_pairs_between(100,500) => [(220, 284)], amicable_pairs_between(1000,3000) => [(1184, 1210), (2620, 2924)] """ pass # problem four def syllables(w): """ Returns the number of syllables in word w. e.g., syllables("dogs") => 1, syllables("delicious") => 3, syllables("interdepartmental") => 6 """ pass