Ivan Shishkin, Rye (1878)

Problems/Computing

Le PGCD sur les réels

by Dattier·
50
Difficulty scaleÉchelle de difficulté

This score reflects both the level of the required concepts and the difficulty of the solution.Ce score tient compte à la fois du niveau des notions nécessaires et de la difficulté de la résolution.

  1. 110First steps / middle schoolPremiers pas / collège
  2. 1125Beginner / high schoolDébutant / lycée
  3. 2650Intermediate / undergraduateIntermédiaire / licence
  4. 5170Advanced / graduateAvancé / master
  5. 7190Expert / specializedExpert / spécialisé
  6. 91100Research levelNiveau recherche
These levels are approximate guides.Ces niveaux sont des repères approximatifs.
·
ReviewedReviewed by Sequoia
·
Français

Showing the Français version because no English translation exists yet. Add that translation.

On propose l’algorithme récursif suivant pour a,bR+a,b \in \mathbb R_+^* définissant f(a,b)f(a,b) :

  1. si a=ba=b alors retourne(aa)
  2. si a>ba>b alors retourne(f(ab,bf(a-b,b))
  3. si a<ba<b alors retrourne(f(a,baf(a,b-a))

Déterminer une CNS sur aa et bb pour que le programme s’arrête.
Que calcule f(a,b)f(a,b) ?

I solved itMark it doneAdd to my listKeep it in your list

References

  1. les dattes à Dattier
Details

Export references

Solutions

0
Report

For an unclear, ambiguous, or possibly incorrect statement, please use the Discussion tab on the right. Report content that needs moderator intervention, such as dangerous, clearly non-mathematical, or plagiarized content.