Solved


Find the Nth number in the 7-sequence
Find the Nth number in the 7-sequence. 7, 14, 21, 28, 35, 42, 49, 56, 63, 77, 84, ... Hint: Refer test suites

8 months ago

Solved


Find the Nth number in the 8-sequence
Find the Nth number in the 8-sequence. 8, 16, 24, 32, 48, 56, 64, 72, 88, ... Hint: Refer test suites

8 months ago

Solved


The Five Infection (Boss Level)
Given a 3x3 matrix A, replace: every value that is equal to five every value that is directly adjacent to a five with zero in...

8 months ago

Solved


A Fiveless Factorial
Given a positive integer x, compute its factorial y, but exclude any muliplication by five if applicable.

8 months ago

Solved


Don't Include a Five (Part Two)
Given a vector A with at least one non-five, return vector B, with all fives excluded (not replaced by zeros).

8 months ago

Solved


Don't Include a Five
Given a vector A, return vector B with all 5s replaced with 0s.

8 months ago

Solved


Don't Sum a Five
Create a function that sums the first and last element of a muti-element vector unless the value of one of the elements is 5. Do...

8 months ago

Solved


Multiplying the Sums of Two Arrays
Get two arrays, add the values within the array up, and then multiply the two total values. [2,3]*[3,6] 5*18 90

8 months ago

Solved


How tall will my cactus be?
My Barbed Wire Cactus is a desert cactus that relies on just the right amount of rainfall to stay healthy. Given a 1×12 vector...

8 months ago

Problem


Find Solutions to Edge-Matching Puzzles
I was intrigued by some edge-matching puzzles I came across when visiting my parents over Thanksgiving. "An edge-matching puzzle...

8 months ago | 0 | 4 solvers

Solved


Determine when iterations of phi(psi(x)) repeat
Cody Problem 656 introduced the Euler totient function , which counts the number of integers smaller than that are relatively...

8 months ago

Solved


Compute the Dedekind psi function
Write a function to compute the Dedekind psi function. The values for n = 1, 2, 3, 4, 5, and 6 are 1, 3, 4, 6, 6, and 12.

8 months ago

Solved


Calculate Euler's phi function
Compute the Euler's phi function of a large integer. For more information about this topic please visit: <https://en.wikiped...

8 months ago

Solved


Express base-10 integers in lazy binary
The binary (or base-2) representations of a number n can be constructed as follows: Step 1: If n = 0, then the binary represent...

8 months ago

Solved


Government of the Neds, by the Neds, for the Neds - Distribute the Nedsburg City Councilors
The city of Nedsburg consists of several islands, the number of which changes regularly, due to tectonic forces, shoddy civil en...

9 months ago

Solved


Return the sum of all even numbers in a vector
Write a function that takes a vector of integers and returns the sum of all even numbers.

10 months ago

Solved


Compute the tersum
The tersum, which appears in certain mathematical games, involves adding two numbers in base 3 without carry and converting back...

10 months ago

Solved


Identify winnable games of Take a Square
A game has a pile of tokens, and two players alternate in taking a certain number of tokens from the pile, with the constraint t...

10 months ago

Solved


Pseudo-Zernike Polynomials
Problem #1476 deals with Radial Zernike Polynomials. Here, generate the Pseudo-Zernike Polynomials for a given order n and degr...

10 months ago

Solved


Shapiro Polynomials
Given an order n, return the coefficients of 1st Shapiro polynomials Pn(x) - %Example P1(x) = x + 1 => Output = [1 1]; P...

10 months ago

Solved


Rooky Towers
You are wandering and as you realise something's off, you find yourself lost in a peculiar place - Over a giant field which is ...

10 months ago

Solved


Touchard Polynomial
Return the coefficients of nth (n>=0) Touchard polynomials - T1(x) = x; output = [1 0]; T2(x) = x^2 + x; output = [1 1 0]...

11 months ago

Solved


Padovan Polynomials
Hello there. I'm afraid I bear bad news - Anakin Skywalker is no longer a Jedi. But fear not young Padawan, we shall not falter...

11 months ago

Solved


find powers of two
find the unique, non-repeating, powers of 2 that sum to a given non-zero integer, n example: n = 23 result = [1 2 4 16] ...

11 months ago

Solved


Stirling Numbers - I
Problems #1388 & #45187 deal with Stirling numbers of the 2nd Kind. Here, generate the Stirling numbers S(n,k) of the 1st kind ...

11 months ago

Problem


Total Area Covered by Overlapping Polygons
Given a variable length set of polygon vertex coordinates, compute the total area covered. For example, take two polygons with t...

11 months ago | 1 | 8 solvers

Solved


Bernstein Basis Polynomials
Return the coefficients of a Bernstein Basis Polynomial B(v,n) for degree n and order v - %Examples B(2, 5) = 10*x^2*(1-x)...

11 months ago

Solved


Secure Password
You are joining the MATLAB Central platform to solve a question on Cody. The signup page, requires you to input an id and a pass...

11 months ago

Solved


Multiply real numbers to get the smallest integers
Write a function that takes a vector of real numbers and multiplies them by a factor to produce the integers with the smallest a...

11 months ago

Solved


Dickson Polynomials
Return the coefficients of nth (n>=0) Dickson polynomial of the 1st kind as follows - 1st row of the output will be the coeffi...

11 months ago

Load more