Solved

Compute the effective conductivity of a heterogeneous aquifer

Slow flow through soil or another porous medium follows Darcy’s law, which relates the flow of water to the gradient in piezome...

6 mois ago

Solved

Sum the elements in rows of the Levine triangle

The Levine triangle starts as follows: Row 0: 2 Row 1: 1 1 Row 2: 1 2 Row 3: 1 1 2 To construct each row, r...

6 mois ago

Solved

Identify Ruth-Aaron numbers

After Hank Aaron hit his 715th home run and passed Babe Ruth’s total of 714, Carl Pomerance noticed that the union of the prime ...

6 mois ago

Solved

Compute a sum of Ramanujan

Srinivasa Ramanujan defined the following function: Write a function to compute for various values of . See also Cody Proble...

6 mois ago

Solved

Find the smallest integer m such that n divides m!

Write a function that takes an integer and finds the smallest integer whose factorial is divisible by . For example, if , then...

6 mois ago

Solved

Determine when snow started

R.P. Agnew posed the following problem: It starts snowing in the morning and continues steadily throughout the day. A snowplow t...

6 mois ago

Solved

Count unique orderings of vertices of a polygon

Cody Problem 2671 asks us to determine whether four points can be the corners of a rectangle. The points are not necessarily inp...

6 mois ago

Solved

Solve an ODE: equation C

Write a function to solve the following ordinary differential equation: with and . The parameter is a constant. The functi...

6 mois ago

Solved

Hexagonal Tiling Dots in a Circle

Return how many <http://en.wikipedia.org/wiki/Hexagonal_grid Hexagonal Tiling> grid points there are inside a circle of radius _...

7 mois ago

Solved

Shifted Hexagonal Tiling Dots in a Circle

Return how many <http://en.wikipedia.org/wiki/Hexagonal_grid Hexagonal Tiling> grid points there are inside a circle of radius _...

7 mois ago