Write c^3 as sum of two squares a^2+b^2
write c^3 as sum of two squares a^2+b^2. a and b must be integer and greater than zero.
For example
5^3 = 2^2 + 11^2
5...
A Simple Tide Gauge with MATLAB
*∿ ∿ ∿ ∿ ∿ ∿ ∿ ∿*
You are standing in a few inches of sea water on a beach.
You a...
3ヶ月 前
解決済み
The glass half full
Identical glasses are placed in a triangular tower structure, such that the top level (L = 1) comprises one glass, the next leve...
3ヶ月 前
解決済み
MATLAB Counter
Write a function f = counter(x0,b) to construct a counter handle f that counts with an initial value x0 and a step size b.
E...
Missing five
Convert decimal numbers to a base-9 notation missing the digit *5*
<<http://www.alfnie.com/software/missing5.jpg>>
Too man...
3ヶ月 前
解決済み
Polarisation
You have n polarising filters stacked one on top of another, and you know each axis angle. How much light gets passed through th...
3ヶ月 前
解決済み
Breaking Out of the Matrix
Do you want to take the Red Pill, or the Blue Pill?
If you take the Blue Pill, you will simply pass along to the next problem...
3ヶ月 前
解決済み
Energy of a photon
⚛ ☢ ⚛ ☢ ⚛ ☢ ⚛
Given the frequency F of a photon in giga hertz.
Find energy E of this photon...
Bouncy numbers
Inspired by Project Euler n°112.
Working from left-to-right if no digit is exceeded by the digit to its left it is called an ...
4ヶ月 前
解決済み
It's going down. We're finding simbers!
This problem is inspired by Project Euler 520: Simbers.
"We define a simber to be a positive integer in which any odd digit, ...
4ヶ月 前
解決済み
Project Euler 249: Prime Subset Sums
Inspired by Problem 249 of Project Euler.
<https://projecteuler.net/problem=249>
Let S = {2, 3, 5, ...} be the set of prime ...
Pandigital Factors (Based on Euler 491)
A Pandigital Number is a number containing all of the digits from 0-9 inclusive, with the added stipulation that it does not hav...
Day counter function
Write a function called day_counter that returns the number of Mondays that fell on the first day of the month in a given year b...
4ヶ月 前
解決済み
Odd elimination
Inspired by Project Euler problem #539
You'll be given a vector from 1 to n;
Going from left to right, remove the first n...
4ヶ月 前
解決済み
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...
4ヶ月 前
解決済み
Give the Shortest Path Through The Maze
*Description*
The purpose of this problem is to give the shortest path through a maze. The maze will be provided in a codifie...
4ヶ月 前
解決済み
2048 Next Move
Given a board in the game 2048 (see the game here: <http://gabrielecirulli.github.io/2048/ 2048>) and a direction ('up','down','...