Code Monkey home page Code Monkey logo

Comments (4)

CuriousCI avatar CuriousCI commented on June 19, 2024 2

(Nota: ho usato la notazione $\equiv _n$ per indicare la congruenza modulo $n$ ).
Il problema si può rappresentare con un sistema di congruenze di tipo cinese

$$ \begin{cases} x \equiv _{13} 11\\ x \equiv _{11} 7\\ x \equiv _7 6 \end{cases} $$

È noto che la soluzione del sistema esiste, è unica ed è nella forma

$$ \tilde{x} = R_1\tilde{x}_1 + R_2\tilde{x}_2 + R_3\tilde{x}_3 $$

Dove, dato $R = 13 \cdot 11 \cdot 7 = 1001$, si calcolano

$$R_1 = \frac{R}{13} = 11 \cdot 7 = 77$$

$$R_2 = \frac{R}{11} = 13 \cdot 7 = 91$$

$$R_3 = \frac{R}{7} = 13 \cdot 11 = 143$$

Ora si possono trovare $\tilde{x} _1, \tilde{x} _2, \tilde{x} _3$

$$R_1 \tilde{x}_1 \equiv _{13} 11 \implies 77 \tilde{x}_1 \equiv _{13} 11 \implies 12 \tilde{x}_1 \equiv _{13} 11 \implies \tilde{x}_1 \equiv _{13} 2 $$

$$R_2 \tilde{x}_2 \equiv _{11} 7 \implies 91 \tilde{x}_2 \equiv _{11} 7 \implies 3 \tilde{x}_2 \equiv _{11} 7 \implies \tilde{x}_2 \equiv _{11} 6$$

$$R_3 \tilde{x}_3 \equiv _7 6 \implies 143\tilde{x}_3 \equiv _7 6 \implies 3 \tilde{x}_3 \equiv _7 6 \implies \tilde{x}_3 \equiv _7 2 $$

Quindi $\tilde{x} = 77 \cdot 2 + 91 \cdot 6 + 143 \cdot 2 \equiv _{1001} 986$.

La risposta è $986$ caramelle. Infatti, $986 \equiv_{13} 11$, $986 \equiv_{11} 7$ e $986 \equiv_7 6$

from algebra2324.

CiottoloMaggico avatar CiottoloMaggico commented on June 19, 2024 1

Analogo @CuriousCI. 986 caramelle

from algebra2324.

dahKidou avatar dahKidou commented on June 19, 2024

(Nota: ho usato la notazione ≡n per indicare la congruenza modulo n ). Il problema si può rappresentare con un sistema di congruenze di tipo cinese

{x≡1311x≡117x≡76

È noto che la soluzione del sistema esiste, è unica ed è nella forma

x~=R1x1+R2x2+R3x~3

Dove, dato R=13⋅11⋅7=1001, si calcolano

R1=R13=11⋅7=77

R2=R11=13⋅7=91

R3=R7=13⋅11=143

Ora si possono trovare x1,x2,x~3

R1x1≡1311⟹77x1≡1311⟹12x1≡1311⟹x1≡132

R2x2≡117⟹91x2≡117⟹2x2≡117⟹x2≡119

R3x3≡76⟹143x3≡76⟹3x3≡76⟹x3≡72

Quindi x~=77⋅2+91⋅9+143⋅2≡10011259≡1001258.

La risposta è 1259 caramelle.

credo che R2x2 sia sbagliato, in quanto 91 in modulo 11 è 11 * 8 + 3

from algebra2324.

CuriousCI avatar CuriousCI commented on June 19, 2024

credo che R2x2 sia sbagliato, in quanto 91 in modulo 11 è 11 * 8 + 3

Hai ragione, errore mio. Ero sicuro di aver controllato che il sistema torni, ma in realtà 258 % 11 fa 5, non 7, correggo subito.

from algebra2324.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.