Submitted


Curvature of a 1D curve in a 2D or 3D space
Calculates the local radius of curvature as well as the cumulative arc length and the curvature vector along a 1D curve in 2D or...

9 months ago | 77 downloads |

Thumbnail

Solved


Easy Sequences 3: Prime 44-number Squares
The positive integers 62 and 238 are related. Their squares (3844 and 56,644) both end in '44'. In fact, 62 and 238 are the 3rd ...

10 months ago

Solved


Easy Sequences 36: Hyperbolic Lattice Points
The graph, shown below, of the hyperbola: , passes through four positive lattice points:. ...

10 months ago

Solved


Easy Sequences 32: Almost Pythagorean Triples
An Almost Pythagorean Triple (abbreviated as "APT'), is a set of 3 integers in which square of the largest element, which we wil...

10 months ago

Solved


Decimation
When dealing to the Roman Army, the term decimate meant that the entire unit would be broken up into groups of ten soldiers, and...

10 months ago

Solved


Easy Sequences 41: Boxes with Integer Edges
For this problem, we are asked to write a function that will count the number of boxes with integer edges, that has the same giv...

10 months ago

Solved


Easy Sequences 39: Perfect Squares in Pascal's Triangle
Consider the 2nd, 3rd and 4th diagonals of the Pascal's Triangle, shown highlighted below: ...

10 months ago

Solved


Easy Sequences 40: Quadratic Congruence
Quadratic Congruence is a modular equation of the form: . In this exercise you will be given a vector containing the coefficie...

10 months ago

Solved


Compute the largest number whose prime factors sum to n
This problem deals with a sequence whose tenth term is 36 because the prime factors of 36 (2, 2, 3, 3) sum to 10. The number 32 ...

10 months ago

Solved


Easy Sequences 38: Prime Number Delta
The Prime Number Theorem states that: where is the prime counting function (number of pri...

10 months ago

Solved


List the cuban primes
The number 61 is a cuban prime because it is prime and the difference two cubes, 64 and 125. Write a function to list the cuba...

10 months ago

Solved


Easy Sequences 29: Odd proper divisors of odd proper divisors
The number is special. It has odd number of proper divisors: . Furthermore, if you take any of its proper divisors, say , it t...

10 months ago

Solved


Easy Sequences 30: Nearly Pythagorean Triangles
A Nearly Pythagorean Triangle (abbreviated as "NPT'), is an integer-sided triangle whose square of the longest side, which we wi...

11 months ago

Solved


Easy Sequences 33: Web Trapped Ant
An ant is trapped on a spider web inside a can with open top. The can has a radius and height . A spider sitting on the outside...

11 months ago

Solved


Easy Sequences 24: Number of Coprime Lattice Points
Given a number 'n', you were tasked to mark and count all coprime lattice points at the first quadrant bounded by the points (0,...

11 months ago

Solved


Easy Sequences 22: Sum of Proper Fractions
Let 'F' be the set of all proper fractions in lowest term, whose denominator is less than or equal 'd'. So, for d = 10, we have:...

11 months ago

Solved


Easy Sequences 26: Prime-Integer Line Segments
At the first quadrant in the -plane, you are asked to construct a line segment with the following specifications: Select a prim...

11 months ago

Solved


Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

11 months ago

Solved


Make a logical diamond using GALLERY function
Inspired from <http://www.mathworks.com/matlabcentral/cody/problems/1078-make-a-diamond Problem 1078. Make a diamond> In thi...

11 months ago

Solved


The Piggy Bank Problem
Given a cylindrical piggy bank with radius g and height y, return the bank's volume. [ g is first input argument.] Bonus though...

11 months ago

Solved


Make a diamond
Given n, odd number > 1, return n by n matrix consist of "null" and "*" characters arranged like a diamond. No toolbox funct...

11 months ago

Solved


Special matrix
Make a square matrix with this shape. For n=4 M = 1 1 0 0 1 0 1 0 0 1 0 ...

11 months ago

Solved


Create Volcano (or Atoll) martix. It is an extension of Bullseye matrix problem.
For example, if n=2 (maximum value), the output matrix should be [1 1 1 1 1; 1 2 2 2 1; 1 2 1 2 1; 1 2 2 2 1; 1 1 ...

11 months ago

Solved


Mirror Image matrix across anti-diagonal
Given an input number x, create a mirror image matrix 'Y' across the anti-diagonal. For example, if x=3, Y = [1 2 3; ...

11 months ago

Solved


Pascal's Matrix
Given an integer n &ge; 0, generate the ( _n_+1) &times; ( _n_+1) lower triangular <http://en.wikipedia.org/wiki/Pascal_matrix P...

11 months ago

Solved


Easy Sequences 20: Counting Prime-sided Rectangles
A prime-sided rectangle is a rectangle having sides represented by prime numbers. The figure below shows all the possible prime-...

11 months ago

Solved


Easy Sequences 11: Factorial Digits without Trailing Zeros
Here is an easy one... It is not difficult to count the number of digits of the factorial of a given number. For example for 'n...

11 months ago

Solved


Easy Sequences 19: Length of Prime-sided Rectangle with Maximum Area
A prime-sided rectangle is a rectangle having sides represented by prime numbers. The figure below shows all the possible prime-...

11 months ago

Solved


Construct a prime circle
A <https://mathworld.wolfram.com/PrimeCircle.html prime circle> is a circular arrangement of the numbers 1 to 2n such that pairs...

11 months ago

Solved


Multiply binary numbers
Write a function to multiply two binary numbers input as strings. For example, input values of ‘1011’ and ‘101’ should give ’110...

11 months ago

Load more