Polite numbers. Politeness.
A polite number is an integer that sums of two or more consecutive positive integers.
Politeness of a positive integer is a num...
Fill a rectangle with 1x1 and 2x2 tiles
A 3x2 rectangle can be filled with 1x1 and 2x2 tiles in three ways:
The colors merely distinguish the sizes of the tiles. A 3...
Generalised Hamming Number
Inspired by Project Euler n°204 and Problem 1308 by James
A generalised Hamming number of type n, has no prime factor larger ...
4 years ago
Solved
Evil Number
Check if a given natural number is evil or not.
Read more at <https://oeis.org/A001969 OEIS>.
4 years ago
Solved
N-th Odious
Given index n return n-th <https://oeis.org/A000069 odious number>.
4 years ago
Solved
Is this number Munchhausen?
In this problem, simply return 1 if a supplied number is Munchhausen or 0 if not.
Example
153 is narcissistic but not a Munchh...
4 years ago
Solved
Duplicates
Write a function that accepts a cell array of strings and returns another cell array of strings *with only the duplicates* retai...
4 years ago
Solved
Find common elements in matrix rows
Given a matrix, find all elements that exist in every row.
For example, given
A =
1 2 3 5
9 2 5 9
3 2 5 9
...
4 years ago
Solved
Alphabetize by last name
Given a list of names in a cell array, sort the list by the last name. So if
list = {'Barney Google','Snuffy Smith','Dagwood ...
4 years ago
Solved
Pangrams!
A pangram, or holoalphabetic sentence, is a sentence using every letter of the alphabet at least once.
Example:
Input s ...
4 years ago
Solved
Bell Number calculator
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 ...