A résolu


yo
yo

plus de 2 ans il y a

A résolu


yo
yo

plus de 2 ans il y a

A résolu


Minimum, Maximum, and Number of Primitive Roots Modulo (m)
This is a continuation of problem 59212, find the number of primitive roots modulo (m) and output the minimum and maximum of tho...

plus de 2 ans il y a

Problème


Minimum, Maximum, and Number of Primitive Roots Modulo (m)
This is a continuation of problem 59212, find the number of primitive roots modulo (m) and output the minimum and maximum of tho...

plus de 2 ans il y a | 0 | 3 solveurs

A résolu


Carmichael Function
Compute the carmichael function for the input.

plus de 2 ans il y a

Problème


Carmichael Function
Compute the carmichael function for the input.

plus de 2 ans il y a | 0 | 8 solveurs

A résolu


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

plus de 2 ans il y a

A résolu


Easy Sequences 42: Areas of Non-constructible Polygons
A constructible polygon is a regular polygon that can be constructed using only a compass and a straightedge. Amazingly, Gauss ...

plus de 2 ans il y a

A résolu


Primitive Root Modulo n
Given a positive integer n > 2, return a vector, v, of positive integers smaller than n that are primitive roots modulo n. If no...

plus de 2 ans il y a

A résolu


Compute the total length of lines between all vertices of a regular polygon
Write a function to compute the total length of between all vertices of a regular polygon inscribed in a unit circle. For exampl...

plus de 2 ans il y a

A résolu


nxn matrix with elements from 1:n^2
really simple once you see what the matrix is supposed to look like. i appreciate what seems to be a clever approach to solving ...

plus de 2 ans il y a

A résolu


Construct numbers from antidiagonals of stacks of binary numbers
A sequence is constructed in the following way: Express the numbers 1, 2, 3, 4, 5,… in binary and stack them, right-justified. T...

plus de 2 ans il y a

A résolu


ベクトルを作成する
0 から n までのベクトルを 2 間隔で作成します。

plus de 2 ans il y a

A résolu


List lunar triangular numbers without duplication
Triangular numbers—which are the subject of Cody Problems 5, 291, 44289, 44732, 45833, 55680, 55695, and 55705—are the sums of c...

plus de 2 ans il y a

A résolu


RPN Calculator for simple arithmetic expressions
Reverse-Polish-Notation (RPN) is a machine friendly form of calculating expressions. Example, to evaluate, (1+2)*4 + 5 - 3 you e...

plus de 2 ans il y a

A résolu


Snakes and Ladders: Variable Die
This problem is a sequal to Problem 59132 Snakes and Ladders: Average Number of Turns. Instead of a 6-sided die, your function ...

plus de 2 ans il y a

A résolu


Snakes and Ladders: Average Number of Turns
In this problem, you will play a single-player variant of the classic game Snakes and Ladders. The rules are as follows: The pl...

plus de 2 ans il y a

A résolu


Bullseye Matrix with Zeros
Inspired by Problem 18, create a bullseye matrix with the addition of padding equal to 0 between concentric rings. Matrices are ...

plus de 2 ans il y a

A résolu


Determine if a number is a cool number
A number is considered cool if it is 3 digits, has a 5 in it, and is divisible by 4.

plus de 2 ans il y a

A résolu


Palindrome String
Determine if the inputted string is a palindrome. That is, the string is the same forwards as it is backwards. For example: ...

plus de 2 ans il y a

A résolu


Palindrome vector
Check if a given vector is Palindrome. Example, [1 2 54 32 45 5 33 456 45 456 33 5 45 32 54 2 1]

plus de 2 ans il y a

A résolu


Sum of squares
Given a number n, return the sum of squares of all integers from 1 to n.

plus de 2 ans il y a

A résolu


Determine whether a number is a Zeisel number
Do you know what is interesting about the number 1729? That’s right: it’s the third Zeisel number, a number given by , where ...

plus de 2 ans il y a

A résolu


rotation et mise à l'échelle avec des complexes
Ecrire une fonction Zr=scale_rot(A,phi,Z) qui permet une mise à l'échelle d'un facteur A et une rotation d'un angle phi (en rad)...

presque 3 ans il y a

A résolu


Find stiffness of all beams for single floor in building
Create a function that finds this stiffness k of all the beams (also known as 'stanchions') for one floor of a three storey buil...

presque 3 ans il y a

A résolu


Find mass of single floor in building
A model building has three floors are highlighted in different colours here: Assu...

presque 3 ans il y a

A résolu


Count integers in randomized vector that are multiples of a given number.
The mod() function We might all remember the days when we were taught to divide and then set the remainder aside if the numbers...

presque 3 ans il y a

A résolu


The Hacker Parole Problem
The hacker parole problem 100 hackers have been imprisoned, but have been given a way to get parole. Each of the 100 prisone...

presque 3 ans il y a

A résolu


Lancer de dés
Ecrire une fonction qui imite le lancer d'un dé, i-e qui renvoie de façon aléatoire un entier entre 1 et 6. Attention cette fon...

presque 3 ans il y a

A résolu


Solve an ODE: precocious pair’s porcine pursuit
In our previous encounters with Matilda and Labrun, the scintillating siblings collected candy wrappers, amused others with card...

presque 3 ans il y a

Charger plus