Skip to content
Snippets Groups Projects
Commit 28eef599 authored by Jan Snellman's avatar Jan Snellman
Browse files

lösningar till tenta 2024-08-22

parent 28f41cb7
No related branches found
No related tags found
No related merge requests found
Pipeline #135792 passed
#+title: TATA54 tenta 20240601, lösningskiss
#+author: Jan Snellman
* Preliminärt
5 uppgifter, 3p för varje. Försöker täcka
- Kongruensräkning
- Hensellyft
- Kvadratisk reciprocite
- Kedjebråk
- Pell eller Pytagoranska tripplar
* Gemensamm kod
#+begin_src sage :session :export none
def H_L_tree(f, p: int, r: int):
vert = [(0,0)]
for j in range(1,r+1):
fj = f.change_ring(Integers(p^j))
fzj = fj.roots(multiplicities=False)
vert += [(z,j) for z in fzj]
return DiGraph([vert,
lambda u,v: (u[1] == 1 and v[1] == 0)
or
( (u[1] == v[1]+1) and ((u[0] - v[0]) % p^v[1] ==0) )
])
#+end_src
#+RESULTS:
#+begin_src latex
\newcommand{\QQ}{\mathbf{Q}}
\newcommand{\ZZ}{\mathbf{Z}}
#+end_src
* Uppgifterna
** U1
#+begin_src latex
Hur många lösningar har kongruensen
\begin{displaymath}
x^4 +2x +4 \equiv 0 \mod 625
\end{displaymath}
#+end_src
#+begin_src sage
:session
p = 5
k = 4
q = p^k
R.<x> = ZZ[]
f = x^4 + 2*x + 3
[(s,f.roots(Integers(p^s),multiplicities=False)) for s in range(k+1)]
df = f.diff()
df, df(3)
#+end_src
#+RESULTS:
: [(0, [0]), (1, [3]), (2, []), (3, []), (4, [])]
: (4*x^3 + 2, 110)
#+begin_src sage :session :results file :file "nu1.png"
H_L_tree(f,p,k).show(layout='tree')
#+end_src
#+RESULTS:
[[file:nu1.png]]
** U2
#+begin_src latex
Hitta alla rationella punkter på kurvan
\begin{displaymath}
x^2 +2y^2 - 1 = 0
\end{displaymath}
#+end_src
Parametrisera med lutning, rationell punkt (-1,0)
#+begin_src sage
:session
var('s,t,x,y')
kurva = x^2 + 2*y^2-1
linje = y - t*(x+1)
soln = solve([kurva,linje],[x,y])
soln
rp = soln[0]
rp
soln2 = solve([linje],[t])
soln2
#+end_src
#+RESULTS:
: (s, t, x, y)
: [[x == -(2*t^2 - 1)/(2*t^2 + 1), y == 2*t/(2*t^2 + 1)], [x == -1, y == 0]]
: [x == -(2*t^2 - 1)/(2*t^2 + 1), y == 2*t/(2*t^2 + 1)]
: [t == y/(x + 1)]
#+begin_src sage :session :results file :file "nu2.png"
epsi = 10^(-1)
parametric_plot((rp[0].rhs(),rp[1].rhs()), (t,+epsi,1/sqrt(7) -epsi) )
#+end_src
#+RESULTS:
[[file:nu2.png]]
** U3
#+begin_src sage :session
legendre_symbol(187,23)
#+end_src
#+RESULTS:
: 1
** U4
#+begin_src latex
Låt \(\tau(n)\) beteckna antalet positiva delare till heltalet \(n\).
Visa att
\[
\sum_{k=1}^n \tau(k) = \sum_{k=1}^n \left \lfloor \frac{n}{k} \right \rfloor
\]
#+end_src
#+begin_s
rc sage :session
n=20
[(k,number_of_divisors(k),floor(n/k)) for k in range(1,n+1)]
def u(n):
return sum(number_of_divisors(k) for k in range(1,n+1))
def w(n):
return sum(floor(n/k) for k in range(1,n+1))
[(k,u(k),w(k)) for k in range(1,20+1)]
#+end_src
#+RESULTS:
#+begin_example
[(1, 1, 20),
(2, 2, 10),
(3, 2, 6),
(4, 3, 5),
(5, 2, 4),
(6, 4, 3),
(7, 2, 2),
(8, 4, 2),
(9, 3, 2),
(10, 4, 2),
(11, 2, 1),
(12, 6, 1),
(13, 2, 1),
(14, 4, 1),
(15, 4, 1),
(16, 5, 1),
(17, 2, 1),
(18, 6, 1),
(19, 2, 1),
(20, 6, 1)]
[(1, 1, 1),
(2, 3, 3),
(3, 5, 5),
(4, 8, 8),
(5, 10, 10),
(6, 14, 14),
(7, 16, 16),
(8, 20, 20),
(9, 23, 23),
(10, 27, 27),
(11, 29, 29),
(12, 35, 35),
(13, 37, 37),
(14, 41, 41),
(15, 45, 45),
(16, 50, 50),
(17, 52, 52),
(18, 58, 58),
(19, 60, 60),
(20, 66, 66)]
#+end_example
** U5
#+begin_src latex
#+end_src
#+RESULTS:
#+begin_export latex
Hur många lösningar har ekvationen
\(x^2 \equiv 187 \mod 23\)?
Hur många har
\(x^2 \equiv 23 \mod 187\)?
#+end_export
#+begin_src s
age :session
p = 23
a = 11*17
a
legendre_symbol(a,p)
R.<x> = ZZ[]
f = x^2 -23
f.roots(Integers(187),multiplicities=False)
f.roots(Integers(11),multiplicities=False)
f.roots(Integers(17),multiplicities=False)
#+end_src
#+RESULTS:
: 187
: 1
: []
: [10, 1]
: []
** U7
#+begin_src latex
Låt \(r=117/119\). Hitta positiva heltal \(a,b\) med \(b < 119\)
så att \(|a/b - r| \le |c/d -r|\) för alla
positiva heltal \(c,d\) med \(d < 119\).
#+end_src
#+RESULTS:
#+begin_export latex
Låt \(r=117/119\). Hitta positiva heltal \(a,b\) med \(b < 119\)
så att \(|a/b - r| \le |c/d -r|\) för alla
positiva heltal \(c,d\) med \(d < 119\).
#+end_export
#+begin_src sage :session
p=117
q= 119
r=p/q
cf = continued_fraction(r)
cf
best = cf.convergent(2)
fel = abs(p/q - best)
"kedjebråkapprox fel", fel
for j in range(2,q):
under = floor(r*j)
over = under+1
funder = abs(under/j - r)
fover = abs(over/j - r)
print(j,funder.n(),fover.n(),fel.n())
#+end_src
#+RESULTS:
#+begin_example
[0; 1, 58, 2]
('kedjebråkapprox fel', 1/7021)
2 0.483193277310924 0.0168067226890756 0.000142429853297251
3 0.316526610644258 0.0168067226890756 0.000142429853297251
4 0.233193277310924 0.0168067226890756 0.000142429853297251
5 0.183193277310924 0.0168067226890756 0.000142429853297251
6 0.149859943977591 0.0168067226890756 0.000142429853297251
7 0.126050420168067 0.0168067226890756 0.000142429853297251
8 0.108193277310924 0.0168067226890756 0.000142429853297251
9 0.0943043884220355 0.0168067226890756 0.000142429853297251
10 0.0831932773109244 0.0168067226890756 0.000142429853297251
11 0.0741023682200153 0.0168067226890756 0.000142429853297251
12 0.0665266106442577 0.0168067226890756 0.000142429853297251
13 0.0601163542340013 0.0168067226890756 0.000142429853297251
14 0.0546218487394958 0.0168067226890756 0.000142429853297251
15 0.0498599439775910 0.0168067226890756 0.000142429853297251
16 0.0456932773109244 0.0168067226890756 0.000142429853297251
17 0.0420168067226891 0.0168067226890756 0.000142429853297251
18 0.0387488328664799 0.0168067226890756 0.000142429853297251
19 0.0358248562582928 0.0168067226890756 0.000142429853297251
20 0.0331932773109244 0.0168067226890756 0.000142429853297251
21 0.0308123249299720 0.0168067226890756 0.000142429853297251
22 0.0286478227654698 0.0168067226890756 0.000142429853297251
23 0.0266715381804896 0.0168067226890756 0.000142429853297251
24 0.0248599439775910 0.0168067226890756 0.000142429853297251
25 0.0231932773109244 0.0168067226890756 0.000142429853297251
26 0.0216548157724628 0.0168067226890756 0.000142429853297251
27 0.0202303143479614 0.0168067226890756 0.000142429853297251
28 0.0189075630252101 0.0168067226890756 0.000142429853297251
29 0.0176760359316140 0.0168067226890756 0.000142429853297251
30 0.0165266106442577 0.0168067226890756 0.000142429853297251
31 0.0154513418270534 0.0168067226890756 0.000142429853297251
32 0.0144432773109244 0.0168067226890756 0.000142429853297251
33 0.0134963076139547 0.0168067226890756 0.000142429853297251
34 0.0126050420168067 0.0168067226890756 0.000142429853297251
35 0.0117647058823529 0.0168067226890756 0.000142429853297251
36 0.0109710550887021 0.0168067226890756 0.000142429853297251
37 0.0102203043379514 0.0168067226890756 0.000142429853297251
38 0.00950906678460858 0.0168067226890756 0.000142429853297251
39 0.00883430295195001 0.0168067226890756 0.000142429853297251
40 0.00819327731092437 0.0168067226890756 0.000142429853297251
41 0.00758352121336339 0.0168067226890756 0.000142429853297251
42 0.00700280112044818 0.0168067226890756 0.000142429853297251
43 0.00644909126441274 0.0168067226890756 0.000142429853297251
44 0.00592055003819710 0.0168067226890756 0.000142429853297251
45 0.00541549953314659 0.0168067226890756 0.000142429853297251
46 0.00493240774570698 0.0168067226890756 0.000142429853297251
47 0.00446987305560522 0.0168067226890756 0.000142429853297251
48 0.00402661064425770 0.0168067226890756 0.000142429853297251
49 0.00360144057623049 0.0168067226890756 0.000142429853297251
50 0.00319327731092437 0.0168067226890756 0.000142429853297251
51 0.00280112044817927 0.0168067226890756 0.000142429853297251
52 0.00242404654169360 0.0168067226890756 0.000142429853297251
53 0.00206120183922626 0.0168067226890756 0.000142429853297251
54 0.00171179582944289 0.0168067226890756 0.000142429853297251
55 0.00137509549274255 0.0168067226890756 0.000142429853297251
56 0.00105042016806723 0.0168067226890756 0.000142429853297251
57 0.000737136960047177 0.0168067226890756 0.000142429853297251
58 0.000434656621269197 0.0168067226890756 0.000142429853297251
59 0.000142429853297251 0.0168067226890756 0.000142429853297251
60 0.0165266106442577 0.000140056022408964 0.000142429853297251
61 0.0159801625568260 0.000413280066124811 0.000142429853297251
62 0.0154513418270534 0.000677690431011114 0.000142429853297251
63 0.0149393090569561 0.000933706816059757 0.000142429853297251
64 0.0144432773109244 0.00118172268907563 0.000142429853297251
65 0.0139625080801551 0.00142210730446025 0.000142429853297251
66 0.0134963076139547 0.00165520753756048 0.000142429853297251
67 0.0130440235795811 0.00188134955474727 0.000142429853297251
68 0.0126050420168067 0.00210084033613445 0.000142429853297251
69 0.0121787845573012 0.00231396906588722 0.000142429853297251
70 0.0117647058823529 0.00252100840336134 0.000142429853297251
71 0.0113622913954314 0.00272221564682211 0.000142429853297251
72 0.0109710550887021 0.00291783380018674 0.000142429853297251
73 0.0105905375848970 0.00310809255208933 0.000142429853297251
74 0.0102203043379514 0.00329320917556212 0.000142429853297251
75 0.00985994397759104 0.00347338935574230 0.000142429853297251
76 0.00950906678460858 0.00364882795223352 0.000142429853297251
77 0.00916730328495034 0.00381970970206264 0.000142429853297251
78 0.00883430295195001 0.00398620986856281 0.000142429853297251
79 0.00850973300712690 0.00414849484097436 0.000142429853297251
80 0.00819327731092437 0.00430672268907563 0.000142429853297251
81 0.00788463533561573 0.00446104367672995 0.000142429853297251
82 0.00758352121336339 0.00461160073785612 0.000142429853297251
83 0.00728966285309304 0.00475852991799129 0.000142429853297251
84 0.00700280112044818 0.00490196078431373 0.000142429853297251
85 0.00672268907563025 0.00504201680672269 0.000142429853297251
86 0.00644909126441274 0.00517881571233144 0.000142429853297251
87 0.00618178305805081 0.00531246981551241 0.000142429853297251
88 0.00592055003819710 0.00544308632543927 0.000142429853297251
89 0.00566518742328392 0.00557076763289585 0.000142429853297251
90 0.00541549953314659 0.00569561157796452 0.000142429853297251
91 0.00517129928894635 0.00581771170006464 0.000142429853297251
92 0.00493240774570698 0.00593715747168433 0.000142429853297251
93 0.00469865365501039 0.00605403451703262 0.000142429853297251
94 0.00446987305560522 0.00616842481673521 0.000142429853297251
95 0.00424590888987174 0.00628040689960195 0.000142429853297251
96 0.00402661064425770 0.00639005602240896 0.000142429853297251
97 0.00381183401195530 0.00649744433856017 0.000142429853297251
98 0.00360144057623049 0.00660264105642257 0.000142429853297251
99 0.00339529751294457 0.00670571258806553 0.000142429853297251
100 0.00319327731092437 0.00680672268907563 0.000142429853297251
101 0.00299525750894417 0.00690573259006573 0.000142429853297251
102 0.00280112044817927 0.00700280112044818 0.000142429853297251
103 0.00261075303907971 0.00709798482499796 0.000142429853297251
104 0.00242404654169360 0.00719133807369101 0.000142429853297251
105 0.00224089635854342 0.00728291316526611 0.000142429853297251
106 0.00206120183922626 0.00737276042492469 0.000142429853297251
107 0.00188486609597110 0.00746092829655227 0.000142429853297251
108 0.00171179582944289 0.00754746342981637 0.000142429853297251
109 0.00154190116413538 0.00763241076247013 0.000142429853297251
110 0.00137509549274255 0.00771581359816654 0.000142429853297251
111 0.00121129532894239 0.00779771368006662 0.000142429853297251
112 0.00105042016806723 0.00787815126050420 0.000142429853297251
113 0.000892392355172157 0.00795716516695174 0.000142429853297251
114 0.000737136960047177 0.00803479286451423 0.000142429853297251
115 0.000584581658750457 0.00811107051516259 0.000142429853297251
116 0.000434656621269197 0.00818603303390322 0.000142429853297251
117 0.000287294404941464 0.00825971414206708 0.000142429853297251
118 0.000142429853297251 0.00833214641788919 0.000142429853297251
#+end_example
* Slut
jansn@jansn19-thinkpad.130192:1724236765
\ No newline at end of file
\relax
\providecommand\babel@aux[2]{}
\@nameuse{bbl@beforestart}
\catcode `"\active
\babel@aux{swedish}{}
\gdef \@abspage@last{1}
This is pdfTeX, Version 3.141592653-2.6-1.40.25 (TeX Live 2023/Fedora 40) (preloaded format=pdflatex 2024.8.21) 22 AUG 2024 14:53
entering extended mode
restricted \write18 enabled.
file:line:error style messages enabled.
%&-line parsing enabled.
**tenta-TATA54-20240822-losning.tex
(./tenta-TATA54-20240822-losning.tex
LaTeX2e <2022-11-01> patch level 1
L3 programming layer <2023-02-22>
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2022/07/02 v1.4n Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2022/07/02 v1.4n Standard LaTeX file (size option)
)
\c@part=\count185
\c@section=\count186
\c@subsection=\count187
\c@subsubsection=\count188
\c@paragraph=\count189
\c@subparagraph=\count190
\c@figure=\count191
\c@table=\count192
\abovecaptionskip=\skip48
\belowcaptionskip=\skip49
\bibindent=\dimen140
)
(/usr/share/texlive/texmf-dist/tex/latex/psnfss/times.sty
Package: times 2020/03/25 PSNFSS-v9.3 (SPQR)
)
(/usr/share/texlive/texmf-dist/tex/latex/euler/euler.sty
Package: euler 1995/03/05 v2.5
Package: `euler' v2.5 <1995/03/05> (FJ and FMi)
LaTeX Font Info: Redeclaring symbol font `letters' on input line 35.
LaTeX Font Info: Encoding `OML' has changed to `U' for symbol font
(Font) `letters' in the math version `normal' on input line 35.
LaTeX Font Info: Overwriting symbol font `letters' in version `normal'
(Font) OML/cmm/m/it --> U/eur/m/n on input line 35.
LaTeX Font Info: Encoding `OML' has changed to `U' for symbol font
(Font) `letters' in the math version `bold' on input line 35.
LaTeX Font Info: Overwriting symbol font `letters' in version `bold'
(Font) OML/cmm/b/it --> U/eur/m/n on input line 35.
LaTeX Font Info: Overwriting symbol font `letters' in version `bold'
(Font) U/eur/m/n --> U/eur/b/n on input line 36.
LaTeX Font Info: Redeclaring math symbol \Gamma on input line 47.
LaTeX Font Info: Redeclaring math symbol \Delta on input line 48.
LaTeX Font Info: Redeclaring math symbol \Theta on input line 49.
LaTeX Font Info: Redeclaring math symbol \Lambda on input line 50.
LaTeX Font Info: Redeclaring math symbol \Xi on input line 51.
LaTeX Font Info: Redeclaring math symbol \Pi on input line 52.
LaTeX Font Info: Redeclaring math symbol \Sigma on input line 53.
LaTeX Font Info: Redeclaring math symbol \Upsilon on input line 54.
LaTeX Font Info: Redeclaring math symbol \Phi on input line 55.
LaTeX Font Info: Redeclaring math symbol \Psi on input line 56.
LaTeX Font Info: Redeclaring math symbol \Omega on input line 57.
\symEulerFraktur=\mathgroup4
LaTeX Font Info: Overwriting symbol font `EulerFraktur' in version `bold'
(Font) U/euf/m/n --> U/euf/b/n on input line 63.
LaTeX Info: Redefining \oldstylenums on input line 85.
\symEulerScript=\mathgroup5
LaTeX Font Info: Overwriting symbol font `EulerScript' in version `bold'
(Font) U/eus/m/n --> U/eus/b/n on input line 93.
LaTeX Font Info: Redeclaring math symbol \aleph on input line 97.
LaTeX Font Info: Redeclaring math symbol \Re on input line 98.
LaTeX Font Info: Redeclaring math symbol \Im on input line 99.
LaTeX Font Info: Redeclaring math delimiter \vert on input line 101.
LaTeX Font Info: Redeclaring math delimiter \backslash on input line 103.
LaTeX Font Info: Redeclaring math symbol \neg on input line 106.
LaTeX Font Info: Redeclaring math symbol \wedge on input line 108.
LaTeX Font Info: Redeclaring math symbol \vee on input line 110.
LaTeX Font Info: Redeclaring math symbol \setminus on input line 112.
LaTeX Font Info: Redeclaring math symbol \sim on input line 113.
LaTeX Font Info: Redeclaring math symbol \mid on input line 114.
LaTeX Font Info: Redeclaring math delimiter \arrowvert on input line 116.
LaTeX Font Info: Redeclaring math symbol \mathsection on input line 117.
\symEulerExtension=\mathgroup6
LaTeX Font Info: Redeclaring math symbol \coprod on input line 125.
LaTeX Font Info: Redeclaring math symbol \prod on input line 125.
LaTeX Font Info: Redeclaring math symbol \sum on input line 125.
LaTeX Font Info: Redeclaring math symbol \intop on input line 130.
LaTeX Font Info: Redeclaring math symbol \ointop on input line 131.
LaTeX Font Info: Redeclaring math symbol \braceld on input line 132.
LaTeX Font Info: Redeclaring math symbol \bracerd on input line 133.
LaTeX Font Info: Redeclaring math symbol \bracelu on input line 134.
LaTeX Font Info: Redeclaring math symbol \braceru on input line 135.
LaTeX Font Info: Redeclaring math symbol \infty on input line 136.
LaTeX Font Info: Redeclaring math symbol \nearrow on input line 153.
LaTeX Font Info: Redeclaring math symbol \searrow on input line 154.
LaTeX Font Info: Redeclaring math symbol \nwarrow on input line 155.
LaTeX Font Info: Redeclaring math symbol \swarrow on input line 156.
LaTeX Font Info: Redeclaring math symbol \Leftrightarrow on input line 157.
LaTeX Font Info: Redeclaring math symbol \Leftarrow on input line 158.
LaTeX Font Info: Redeclaring math symbol \Rightarrow on input line 159.
LaTeX Font Info: Redeclaring math symbol \leftrightarrow on input line 160.
LaTeX Font Info: Redeclaring math symbol \leftarrow on input line 161.
LaTeX Font Info: Redeclaring math symbol \rightarrow on input line 163.
LaTeX Font Info: Redeclaring math delimiter \uparrow on input line 166.
LaTeX Font Info: Redeclaring math delimiter \downarrow on input line 168.
LaTeX Font Info: Redeclaring math delimiter \updownarrow on input line 170.
LaTeX Font Info: Redeclaring math delimiter \Uparrow on input line 172.
LaTeX Font Info: Redeclaring math delimiter \Downarrow on input line 174.
LaTeX Font Info: Redeclaring math delimiter \Updownarrow on input line 176.
LaTeX Font Info: Redeclaring math symbol \leftharpoonup on input line 177.
LaTeX Font Info: Redeclaring math symbol \leftharpoondown on input line 178.
LaTeX Font Info: Redeclaring math symbol \rightharpoonup on input line 179.
LaTeX Font Info: Redeclaring math symbol \rightharpoondown on input line 180
.
LaTeX Font Info: Redeclaring math delimiter \lbrace on input line 182.
LaTeX Font Info: Redeclaring math delimiter \rbrace on input line 184.
\symcmmigroup=\mathgroup7
LaTeX Font Info: Overwriting symbol font `cmmigroup' in version `bold'
(Font) OML/cmm/m/it --> OML/cmm/b/it on input line 200.
LaTeX Font Info: Redeclaring math accent \vec on input line 201.
LaTeX Font Info: Redeclaring math symbol \triangleleft on input line 202.
LaTeX Font Info: Redeclaring math symbol \triangleright on input line 203.
LaTeX Font Info: Redeclaring math symbol \star on input line 204.
LaTeX Font Info: Redeclaring math symbol \lhook on input line 205.
LaTeX Font Info: Redeclaring math symbol \rhook on input line 206.
LaTeX Font Info: Redeclaring math symbol \flat on input line 207.
LaTeX Font Info: Redeclaring math symbol \natural on input line 208.
LaTeX Font Info: Redeclaring math symbol \sharp on input line 209.
LaTeX Font Info: Redeclaring math symbol \smile on input line 210.
LaTeX Font Info: Redeclaring math symbol \frown on input line 211.
LaTeX Font Info: Redeclaring math accent \hat on input line 254.
) (/usr/share/texlive/texmf-dist/tex/latex/a4wide/a4wide.sty
Package: a4wide 1994/08/30
(/usr/share/texlive/texmf-dist/tex/latex/ntgclass/a4.sty
Package: a4 2023/01/10 v1.2g A4 based page layout
))
(/usr/share/texlive/texmf-dist/tex/latex/tools/enumerate.sty
Package: enumerate 2015/07/23 v3.00 enumerate extensions (DPC)
\@enLab=\toks16
)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
Package: amsmath 2022/04/08 v2.17n AMS math features
\@mathmargin=\skip50
For additional information on amsmath, use the `?' option.
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
Package: amstext 2021/08/26 v2.01 AMS text
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty
File: amsgen.sty 1999/11/30 v2.0 generic functions
\@emptytoks=\toks17
\ex@=\dimen141
))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d Bold Symbols
\pmbraise@=\dimen142
)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty
Package: amsopn 2022/04/08 v2.04 operator names
)
\inf@bad=\count193
LaTeX Info: Redefining \frac on input line 234.
\uproot@=\count194
\leftroot@=\count195
LaTeX Info: Redefining \overline on input line 399.
LaTeX Info: Redefining \colon on input line 410.
\classnum@=\count196
\DOTSCASE@=\count197
LaTeX Info: Redefining \ldots on input line 496.
LaTeX Info: Redefining \dots on input line 499.
LaTeX Info: Redefining \cdots on input line 620.
\Mathstrutbox@=\box51
\strutbox@=\box52
LaTeX Info: Redefining \big on input line 722.
LaTeX Info: Redefining \Big on input line 723.
LaTeX Info: Redefining \bigg on input line 724.
LaTeX Info: Redefining \Bigg on input line 725.
\big@size=\dimen143
LaTeX Font Info: Redeclaring font encoding OML on input line 743.
LaTeX Font Info: Redeclaring font encoding OMS on input line 744.
\macc@depth=\count198
LaTeX Info: Redefining \bmod on input line 905.
LaTeX Info: Redefining \pmod on input line 910.
LaTeX Info: Redefining \smash on input line 940.
LaTeX Info: Redefining \relbar on input line 970.
LaTeX Info: Redefining \Relbar on input line 971.
\c@MaxMatrixCols=\count199
\dotsspace@=\muskip16
\c@parentequation=\count266
\dspbrk@lvl=\count267
\tag@help=\toks18
\row@=\count268
\column@=\count269
\maxfields@=\count270
\andhelp@=\toks19
\eqnshift@=\dimen144
\alignsep@=\dimen145
\tagshift@=\dimen146
\tagwidth@=\dimen147
\totwidth@=\dimen148
\lineht@=\dimen149
\@envbody=\toks20
\multlinegap=\skip51
\multlinetaggap=\skip52
\mathdisplay@stack=\toks21
LaTeX Info: Redefining \[ on input line 2953.
LaTeX Info: Redefining \] on input line 2954.
)
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amssymb.sty
Package: amssymb 2013/01/14 v3.01 AMS font symbols
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amsfonts.sty
Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support
\symAMSa=\mathgroup8
\symAMSb=\mathgroup9
LaTeX Font Info: Redeclaring math symbol \hbar on input line 98.
LaTeX Info: Redefining \frak on input line 111.
))
(/usr/share/texlive/texmf-dist/tex/latex/amscls/amsthm.sty
Package: amsthm 2020/05/29 v2.20.6
\thm@style=\toks22
\thm@bodyfont=\toks23
\thm@headfont=\toks24
\thm@notefont=\toks25
\thm@headpunct=\toks26
\thm@preskip=\skip53
\thm@postskip=\skip54
\thm@headsep=\skip55
\dth@everypar=\toks27
)
(/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty
Package: inputenc 2021/02/14 v1.3d Input encoding file
\inpenc@prehook=\toks28
\inpenc@posthook=\toks29
)
(/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty
Package: babel 2023/02/13 3.86 The Babel package
\babel@savecnt=\count271
\U@D=\dimen150
\l@unhyphenated=\language85
(/usr/share/texlive/texmf-dist/tex/generic/babel/txtbabel.def)
\bbl@readstream=\read2
\bbl@dirlevel=\count272
(/usr/share/texlive/texmf-dist/tex/generic/babel-swedish/swedish.ldf
Language: swedish 2021/02/06 v2.3e Swedish support from the babel system
Package babel Info: Making " an active character on input line 90.
))
(/usr/share/texlive/texmf-dist/tex/generic/babel/locale/sv/babel-swedish.tex
Package babel Info: Importing font and identification data for swedish
(babel) from babel-sv.ini. Reported on input line 11.
)
LaTeX Font Info: Trying to load font information for OT1+ptm on input line 1
9.
(/usr/share/texlive/texmf-dist/tex/latex/psnfss/ot1ptm.fd
File: ot1ptm.fd 2001/06/04 font definitions for OT1/ptm.
)
(/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def
File: l3backend-pdftex.def 2023-01-16 L3 backend support: PDF output (pdfTeX)
\l__color_backend_stack_int=\count273
\l__pdf_internal_box=\box53
)
(./tenta-TATA54-20240822-losning.aux)
\openout1 = `tenta-TATA54-20240822-losning.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 19.
LaTeX Font Info: ... okay on input line 19.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 19.
LaTeX Font Info: ... okay on input line 19.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 19.
LaTeX Font Info: ... okay on input line 19.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 19.
LaTeX Font Info: ... okay on input line 19.
LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 19.
LaTeX Font Info: ... okay on input line 19.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 19.
LaTeX Font Info: ... okay on input line 19.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 19.
LaTeX Font Info: ... okay on input line 19.
LaTeX Font Info: Redeclaring symbol font `operators' on input line 19.
LaTeX Font Info: Overwriting symbol font `operators' in version `normal'
(Font) OT1/cmr/m/n --> OT1/ptm/m/up on input line 19.
LaTeX Font Info: Overwriting symbol font `operators' in version `bold'
(Font) OT1/cmr/bx/n --> OT1/ptm/m/up on input line 19.
LaTeX Font Info: Overwriting symbol font `operators' in version `bold'
(Font) OT1/ptm/m/up --> OT1/ptm/b/up on input line 19.
LaTeX Font Info: Redeclaring math alphabet \mathbf on input line 19.
LaTeX Font Info: Overwriting math alphabet `\mathbf' in version `normal'
(Font) OT1/cmr/bx/n --> OT1/ptm/b/up on input line 19.
LaTeX Font Info: Overwriting math alphabet `\mathbf' in version `bold'
(Font) OT1/cmr/bx/n --> OT1/ptm/b/up on input line 19.
LaTeX Font Info: Redeclaring math alphabet \mathsf on input line 19.
LaTeX Font Info: Overwriting math alphabet `\mathsf' in version `normal'
(Font) OT1/cmss/m/n --> OT1/phv/m/up on input line 19.
LaTeX Font Info: Overwriting math alphabet `\mathsf' in version `bold'
(Font) OT1/cmss/bx/n --> OT1/phv/m/up on input line 19.
LaTeX Font Info: Redeclaring math alphabet \mathit on input line 19.
LaTeX Font Info: Overwriting math alphabet `\mathit' in version `normal'
(Font) OT1/cmr/m/it --> OT1/ptm/m/it on input line 19.
LaTeX Font Info: Overwriting math alphabet `\mathit' in version `bold'
(Font) OT1/cmr/bx/it --> OT1/ptm/m/it on input line 19.
LaTeX Font Info: Redeclaring math alphabet \mathtt on input line 19.
LaTeX Font Info: Overwriting math alphabet `\mathtt' in version `normal'
(Font) OT1/cmtt/m/n --> OT1/pcr/m/up on input line 19.
LaTeX Font Info: Overwriting math alphabet `\mathtt' in version `bold'
(Font) OT1/cmtt/m/n --> OT1/pcr/m/up on input line 19.
LaTeX Font Info: Overwriting math alphabet `\mathsf' in version `bold'
(Font) OT1/phv/m/up --> OT1/phv/b/up on input line 19.
LaTeX Font Info: Overwriting math alphabet `\mathit' in version `bold'
(Font) OT1/ptm/m/it --> OT1/ptm/b/it on input line 19.
LaTeX Font Warning: Font shape `OT1/ptm/m/up' undefined
(Font) using `OT1/ptm/m/n' instead on input line 35.
LaTeX Font Info: Trying to load font information for U+eur on input line 35.
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/ueur.fd
File: ueur.fd 2013/01/14 v3.01 Euler Roman
)
LaTeX Font Info: Trying to load font information for U+euf on input line 35.
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/ueuf.fd
File: ueuf.fd 2013/01/14 v3.01 Euler Fraktur
)
LaTeX Font Info: Trying to load font information for U+eus on input line 35.
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/ueus.fd
File: ueus.fd 2013/01/14 v3.01 Euler Script
)
LaTeX Font Info: Trying to load font information for U+euex on input line 35
.
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/ueuex.fd
File: ueuex.fd 2013/01/14 v3.01 Euler extra symbols
)
LaTeX Font Info: Trying to load font information for U+msa on input line 35.
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsa.fd
File: umsa.fd 2013/01/14 v3.01 AMS symbols A
)
LaTeX Font Info: Trying to load font information for U+msb on input line 35.
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsb.fd
File: umsb.fd 2013/01/14 v3.01 AMS symbols B
) [1
{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}{/usr/share/texlive/texmf-di
st/fonts/enc/dvips/base/8r.enc}] (./tenta-TATA54-20240822-losning.aux)
LaTeX Font Warning: Some font shapes were not available, defaults substituted.
)
Here is how much of TeX's memory you used:
3118 strings out of 476041
50293 string characters out of 5793164
1859388 words of memory out of 6000000
23542 multiletter control sequences out of 15000+600000
520902 words of font info for 58 fonts, out of 8000000 for 9000
1137 hyphenation exceptions out of 8191
56i,5n,62p,252b,215s stack positions out of 10000i,1000n,20000p,200000b,200000s
</usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmex10.pfb></us
r/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy10.pfb></usr/shar
e/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy7.pfb></usr/share/texli
ve/texmf-dist/fonts/type1/public/amsfonts/euler/euex10.pfb></usr/share/texlive/
texmf-dist/fonts/type1/public/amsfonts/euler/eufm10.pfb></usr/share/texlive/tex
mf-dist/fonts/type1/public/amsfonts/euler/eufm7.pfb></usr/share/texlive/texmf-d
ist/fonts/type1/public/amsfonts/euler/eurm10.pfb></usr/share/texlive/texmf-dist
/fonts/type1/public/amsfonts/euler/eurm5.pfb></usr/share/texlive/texmf-dist/fon
ts/type1/public/amsfonts/euler/eurm7.pfb></usr/share/texlive/texmf-dist/fonts/t
ype1/public/amsfonts/euler/eusm10.pfb></usr/share/texlive/texmf-dist/fonts/type
1/public/amsfonts/symbols/msbm10.pfb></usr/share/texlive/texmf-dist/fonts/type1
/urw/times/utmb8a.pfb></usr/share/texlive/texmf-dist/fonts/type1/urw/times/utmr
8a.pfb>
Output written on tenta-TATA54-20240822-losning.pdf (1 page, 85679 bytes).
PDF statistics:
74 PDF objects out of 1000 (max. 8388607)
44 compressed objects within 1 object stream
0 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)
File added
\documentclass[10pt,a4paper]{article}
\usepackage{times}
\usepackage{euler}
\usepackage{a4wide}
\usepackage{enumerate}
\usepackage{amsmath,amssymb,amsthm}
\usepackage[utf8]{inputenc}
\usepackage[swedish]{babel}
\newcommand{\sgd}{\mathrm{sgd}}
\newcommand{\set}[1]{\left\{{#1}\right\}}
\newcommand{\vek}[1]{\boldsymbol{#1}}
\newcommand\setsuchas[2]{\left\{\,{#1}\,\vrule\,{#2}\,\right\}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\QQ}{\mathbb{Q}}
\newcommand{\legendre}[2]{\genfrac{(}{)}{}{}{#1}{#2}}
\newcommand{\divides}[2]{{#1} \lvert {#2}}
\newcommand{\soln}{\textbf{Lösning: }}
\pagestyle{empty}
\begin{document}
{
\noindent Lösningar till
Talteori 6hp, Kurskod TATA54, Provkod TEN1 \\
22 aug 2024 kl 14-18 \\
LINKÖPINGS UNIVERSITET\\
Matematiska Institutionen\\
Examinator: Jan Snellman}
\bigskip
\begin{enumerate}[1)]
\item
Hur många lösningar har kongruensen
\begin{displaymath}
x^4 +2x +4 \equiv 0 \mod 625 ?
\end{displaymath}
\soln Kalla polynomet för \(f(x)\). Modulo 5 finns den enda lösningen
\(x \equiv 3 \mod 5\). Eftersom \(f'(3)=110 \equiv 0 \mod 5\)
så lyfter inga eller alla av \(3 + 5s\), \(s=0,1,2,3,4\),
till lösningar modulo 25. Eftersom \(f(3)=110 \not \equiv 0\)
så finns inga lösningar modulo 25, och alltså inga modulo 625.
\item Hitta alla rationella punkter på kurvan
\begin{displaymath}
x^2 +2y^2 - 1 = 0.
\end{displaymath}
Annorlunda uttryckt, hitta alla rationella lösningar till ekvationen
(inte bara heltalslösningar).
\soln Vi har de triviala lösningarna \((1,0),(-1,0)\).
Linjen \(y=t(x+1)\) skär ellipsen i \((-1,0)\)
samt i \(\frac{1}{2t^2+1}(1-2t^2, 2t)\). Det ger en bijektion mellan
rella linjen och kurvan minus
punkten \((-1,0))\). Inversen ges av \((x,y) \mapsto \frac{y}{x+1}\).
Båda dessa avbildningar respekterar rationalitet, så de rationella punkterna på kurvan
är \((-1,0)\) samt \(\frac{1}{2t^2+1}(1-2t^2, 2t)\) för \(t \in \QQ\).
\item
Hur många lösningar har kongruensen
\(x^2 \equiv 187 \mod 23\)?
\soln 23 är ett primtal, och
\(\legendre{187}{23} = \legendre{3}{23} = - \legendre{23}{3} = - \legendre{2}{3}
=1\). Alltså har 187 precis 2 kvadratrötter modulo 23.
\item
Hur många lösningar har kongruensen
\(x^2 \equiv 23 \mod 187\)?
\soln \(187=11*17\) och
\(\legendre{23}{17}=\legendre{6}{17} = \legendre{2}{17} \legendre{3}{17}\)
\item
Låt \(r=117/119\). Hitta positiva heltal \(a,b\) med \(b < 119\)
så att
\[
|a/b - r| \le |c/d -r|
\]
för alla
positiva heltal \(c,d\) med \(d < 119\).
\item
Låt \(\tau(n)\) beteckna antalet positiva delare till det positiva heltalet \(n\),
och låt \(\lfloor r \rfloor\) beteckna heltalsdelen av \(r\).
Gäller det att
\[
\sum_{k=1}^n \tau(k) =
\sum_{k=1}^n \left \lfloor \frac{n}{k} \right \rfloor
\]
för alla positiva heltal \(n\)? Ge bevis eller motexempel.
%https://math.stackexchange.com/questions/1749204/sum-of-number-of-divisors-function-equals-sum-j-1n-lfloor-n-j-rfloor
\end{enumerate}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
\documentclass[12pt,a4paper]{article}
%\usepackage{times}
%\usepackage{euler}
%\usepackage{a4wide}
\usepackage{enumerate}
\usepackage{amsmath,amssymb,amsthm}
\usepackage[utf8]{inputenc}
\usepackage[swedish]{babel}
\newcommand{\sgd}{\mathrm{sgd}}
\newcommand{\set}[1]{\left\{{#1}\right\}}
\newcommand{\vek}[1]{\boldsymbol{#1}}
\newcommand\setsuchas[2]{\left\{\,{#1}\,\vrule\,{#2}\,\right\}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\QQ}{\mathbb{Q}}
\newcommand{\legendre}[2]{\genfrac{(}{)}{}{}{#1}{#2}}
\newcommand{\divides}[2]{{#1} \lvert {#2}}
\pagestyle{empty}
\begin{document}
{
\noindent Talteori 6hp, Kurskod TATA54, Provkod TEN1 \\
22 aug 2024 kl 14-18 \\
LINKÖPINGS UNIVERSITET\\
Matematiska Institutionen\\
Examinator: Jan Snellman}
\bigskip
Alla problem ger maximalt 3 poäng. Full poäng kräver fullständig lösning.
8p räcker för betyg 3, 11p för betyg 4, 14p för betyg 5.
\medskip
\begin{enumerate}[1)]
\item
Hur många lösningar har kongruensen
\begin{displaymath}
x^4 +2x +4 \equiv 0 \mod 625 ?
\end{displaymath}
\item Hitta alla rationella punkter på kurvan
\begin{displaymath}
x^2 +2y^2 - 1 = 0.
\end{displaymath}
Annorlunda uttryckt, hitta alla rationella lösningar till ekvationen
(inte bara heltalslösningar).
\item
Hur många lösningar har kongruensen
\(x^2 \equiv 187 \mod 23\)?
\item
Hur många lösningar har kongruensen
\(x^2 \equiv 23 \mod 187\)?
\item
Låt \(r=117/119\). Hitta positiva heltal \(a,b\) med \(b < 119\)
så att
\[
|a/b - r| \le |c/d -r|
\]
för alla
positiva heltal \(c,d\) med \(d < 119\).
\item
Låt \(\tau(n)\) beteckna antalet positiva delare till det positiva heltalet \(n\),
och låt \(\lfloor r \rfloor\) beteckna heltalsdelen av \(r\).
Gäller det att
\[
\sum_{k=1}^n \tau(k) =
\sum_{k=1}^n \left \lfloor \frac{n}{k} \right \rfloor
\]
för alla positiva heltal \(n\)? Ge bevis eller motexempel.
%https://math.stackexchange.com/questions/1749204/sum-of-number-of-divisors-function-equals-sum-j-1n-lfloor-n-j-rfloor
\end{enumerate}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment