Community Profile

Contact

Top 1% contributor

Hello Stas, I am rather new to Matlab and Java, but I found that I could waitfor() a bound Java property if I first connected a...

2134 views

Responded 5 years ago

Inspired by Project Euler n°204 and Problem 1308 by James A generalised Hamming number of type n, has no prime factor larger ...

Solve this!

11 months ago

This problem is the next step up from <http://www.mathworks.com/matlabcentral/cody/problems/156-parasitic-numbers Problem 156>. ...

Return the nth rational number. This is the inverse to Problem <http://www.mathworks.com/matlabcentral/cody/problems/1471 1...

The task of <http://www.mathworks.co.uk/matlabcentral/cody/problems/5 Problem 5> is to calculate triangular numbers. By playing ...

A <http://en.wikipedia.org/wiki/Vampire_number vampire number> is a number v that is the product of two numbers x and y such th...

A polite number is an integer that sums of two or more consecutive positive integers. Politeness of a positive integer is a num...

Calculate a vector of Bell numbers for sets up to length n. Bell numbers are the maximum number of partitions of a set. See the ...

Given index n return n-th <https://oeis.org/A000069 odious number>.

In this problem, simply return 1 if a supplied number is Munchhausen narcissistic or 0 if not. Example 153 is narcissistic...

A polite number is an integer that sums of at least two consecutive positive integers. For example _7 = 3+4_ so 7 is a polite...

Determine whether the given input n-digit number is Armstrong Number or not. Return True if it is an Armstrong Number. An n-D...

Check if a given natural number is evil or not. Read more at <https://oeis.org/A001969 OEIS>.

Return true if the input is a Smith number in base ten. Otherwise, return false. Read about Smith numbers at <http://en.wikipedi...

Compute the _n_-th Fibonacci Number f(0) = 0, f(1) = 1, f(2) = 1, f(3) = 2, ... f(42) = 267914296

Inspired by Problem 2056 created by Ted. In recreational number theory, a narcissistic number is a number that is the sum of ...

Test if the input is a Kaprekar number: <http://mathworld.wolfram.com/KaprekarNumber.html>. Return a logical true or false. ...

*Description:* Determine if the elements of an input array are triangle numbers and return the result as an array with the sa...

You will be given a cell array of nx2 matrices. Choose one row from each matrix. These are the ordered pairs that will be plac...

Given a list of pairs, find the orientation they should be placed in a line, such that the sum of the absolute values of the dif...

Given a list of ordered pairs, find the order they should be placed in a line, such that the sum of the absolute values of the d...

Imagine a square tile with four numbers on it, one on each edge. We will call these edges north, east, south, and west. If th...

You have a stack of tiles to put onto an array-like playing board. Each tile has a number (always an integer), and the board var...

Given a list of ordered pairs, and the order they should be placed in a line, find the sum of the absolute values of the differe...

All points except for one lie on a line. Which one is the outlier? Example: You are given a list of x-y pairs in a column ...

inner product of two vectors

12 months ago

Find the 9's complement of the given number. An example of how this works is <http://electrical4u.com/9s-complement-and-10s-c...

Test whether the first input x is an n-parasitic number: <http://en.wikipedia.org/wiki/Parasitic_number>. ( _n_ is the second in...

Given a list of results from trades made: [1 3 -4 2 -1 2 3] We can add them up to see this series of trades made a profit ...

Load more

Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

You can also select a location from the following list:

See all countries