解決済み


Easy Sequences 43: Least Common Fibonacci Number
The Fibonacci sequence is a series whose elements are numbers starting with and , and subsequent Fibonacci numbers are defined...

4年以上 前

解決済み


Easy Sequences 45: Second Derivative of Inverse Polynomial Function
The inverse of a function, is the function , that reverses . That means that if , then . For example, the function to convert ce...

4年以上 前

解決済み


Easy Sequences 44: Finding the Smallest Number whose Cube is divisible by a Factorial
Given a integer , our goal is to find the smallest integer , such that divides . For example, for , , because , (since ), and ...

4年以上 前

解決済み


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...

4年以上 前

解決済み


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

4年以上 前

解決済み


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...

4年以上 前

解決済み


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 ...

4年以上 前

解決済み


Sum
Sum 1 and 2

4年以上 前

解決済み


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...

4年以上 前

解決済み


Easy Sequences 35: Cutting a donut to Semi-prime pieces
The figure below illustrates how a torus (donut shape) can be cut in pieces with only cuts: ...

4年以上 前

解決済み


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

4年以上 前

解決済み


Output the sum of all the odd integers
Example: x = [ 1 2 3 4 5 6 7 8 9 ] y = 25

4年以上 前

解決済み


Easy Sequences 34: Modified Pascal's Triangle
Consider the integer triangle below: It follows the same ...

4年以上 前

解決済み


Poly2mask, drawpolygon or patch
Recently, I tried to plot a polygon in matlab, and I found there is a lot of embedded function that can be used. However, some f...

4年以上 前

解決済み


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...

4年以上 前

解決済み


Godfather or Goodfather
Recently, I watched the movie called the Godfather. In my opinoin, Vito Corleone is not just a godfather, he is also a good fat...

4年以上 前

解決済み


Easy Sequences 31: N-N's Sequence
We define the N-N's Sequence, as the series of all positive integers in ascending order and with repetition, wherein a appears ...

4年以上 前

解決済み


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

4年以上 前

解決済み


Easy Sequences 28: Sum of Radicals of Integers
The radical of a positive integer is defined as the product of the distinct prime numbers dividing . For example, the distinct ...

4年以上 前

解決済み


Easy Sequences 27: Product of Radicals of Integers
The radical of a positive integer is defined as the product of the distinct prime numbers dividing . For example, the distinct ...

4年以上 前

解決済み


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...

4年以上 前

解決済み


Plotting Practice
Plot cos(x) vs x as shown in the figure below. Include the appropriate title, x-label, and y-label. Note, it is case sensitive. ...

4年以上 前

解決済み


Easy Sequences 25: Product of Series
The function 'P(n)' is defined as the series product: where 'T(n)' is the triangular sum: ...

4年以上 前

解決済み


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 the the points (0...

4年以上 前

解決済み


Easy Sequences 23: Hat Guessing Game!
Consider the following Game Show: Hats, with numbers written on each, were placed on the heads of the participants. Participant...

4年以上 前

解決済み


A SUBSREF variant that accepts the 'end'-operator.
Unfortunately, Matlab's |subsref| function does not support the |end| -operator. The |end| -operator is a powerfull method to re...

4年以上 前

解決済み


Convert vector datasets to plot with imagesc instead of scatter
For large datasets this allows much faster plotting. An irregular 2D spatial sampling is provided in x and y vectors with a d...

4年以上 前

解決済み


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-...

4年以上 前

解決済み


Easy Sequences 21: Combinatorial Summations
Create the function S(n), defined by the following summation: The symbol is the combination f...

4年以上 前

解決済み


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...

4年以上 前

さらに読み込む