WOLFRAM NOTEBOOK

In[]:=
Module[{f},f[n_]:=If[n<=0,Abs[n],2f[n-f[n-2]]];LogPlot[f[n],{n,0,10},Frame->True,AspectRatio->1/4,ImageSize->500,FrameLabel{x,"f[x]"}]]
Out[]=
In[]:=
Module{f},f[n_]:=If[n<=0,Abs[n],2f[n-f[n-2]]];LogPlotf[n],{n,0,5},Frame->True,AspectRatio->14,PlotPoints->1000,ImageSize->500,PlotStyle
,FrameLabel{x,"f[x]"}
Out[]=
In[]:=
Module[{f},f[n_]:=If[n<=0,Abs[n-1],2f[n-f[n-2]]];LogPlot[f[n],{n,0,30},Frame->True,AspectRatio->1/4,PlotPoints->1000,ImageSize->500,FrameLabel{x,"f[x]"}]]
Out[]=
In[]:=
Module{f},f[n_]:=If[n<=0,Abs[n-1],2f[n-f[n-2]]];LogPlotf[n],{n,0,10},Frame->True,AspectRatio->14,PlotPoints->2000,ImageSize->500,FrameLabel{x,"f[x]"},PlotStyle
Out[]=
In[]:=
Module[{f},f[n_]:=If[n<=0,Abs[n-1],2f[n-f[n-2]]];f/@Range[1,5,1/2]]
Out[]=
{4,2,8,9,4,4,10,11,8}
In[]:=
Module[{f},f[n_]:=If[n<=0,Abs[n-1],2f[n-f[n-2]]];f/@Range[1,5,1/3]]
Out[]=
4,
8
3
,
40
3
,8,
32
3
,
22
3
,4,
32
3
,
64
3
,10,
44
3
,
22
3
,8
In[]:=
Module[{f},f[n_]:=If[n<=0,Abs[n-1],2f[n-f[n-2]]];f/@Range[0,10,1/4!]]
Out[]=
1,
47
6
,
23
3
,
15
2
,
22
3
,
43
6
,7,
41
6
,
20
3
,
13
2
,
19
3
,
37
6
,6,
35
6
,
17
3
,
11
2
,
16
3
,
31
6
,5,
29
6
,
14
3
,
9
2
,
13
3
,
25
6
,4,
23
6
,
11
3
,
7
2
,
10
3
,
19
6
,3,
17
6
,
8
3
,
5
2
,
7
3
,
13
6
,2,
46
3
,
44
3
,14,
40
3
,
38
3
,12,
34
3
,
32
3
,10,
28
3
,
26
3
,8,
163
12
,
79
6
,
51
4
,
37
3
,
143
12
,
23
2
,
133
12
,
32
3
,
41
4
,
59
6
,
113
12
,9,
103
12
,
49
6
,
31
4
,
22
3
,
83
12
,
13
2
,
73
12
,
17
3
,
21
4
,
29
6
,
53
12
,4,
43
12
,
19
6
,
11
4
,
7
3
,
47
3
,14,
37
3
,
32
3
,9,
22
3
,
17
3
,4,
307
12
,
145
6
,
91
4
,
64
3
,
239
12
,
37
2
,
205
12
,
47
3
,
57
4
,
77
6
,
137
12
,10,
253
12
,
121
6
,
77
4
,
55
3
,
209
12
,
33
2
,
187
12
,
44
3
,
55
4
,
77
6
,
143
12
,11,
121
12
,
55
6
,
33
4
,
22
3
,
77
12
,
11
2
,
55
12
,
11
3
,
11
4
,
46
3
,
35
3
,8,
13
3
,
56
3
,
41
2
,
34
3
,
275
12
,
39
2
,
193
12
,
38
3
,
37
4
,
35
6
,
29
12
,4,
505
12
,
235
6
,
145
4
,
100
3
,
365
12
,
55
2
,
295
12
,
65
3
,
75
4
,
95
6
,
155
12
,10,
385
12
,
181
6
,
113
4
,
79
3
,
293
12
,
45
2
,
247
12
,
56
3
,
67
4
,
89
6
,
155
12
,11,
109
12
,
43
6
,
21
4
,
10
3
,
41
3
,6,
143
6
,
14
3
,
77
2
,
113
6
,
137
12
,4,
83
6
,
151
6
,
115
4
,
31
3
,
401
12
,
53
2
,
235
12
,
38
3
,
23
4
,
88
3
,
26
3
,8,
853
12
,
391
6
,
237
4
,
160
3
,
569
12
,
83
2
,
427
12
,
89
3
,
95
4
,
107
6
,
143
12
,6,
601
12
,
277
6
,
169
4
,
115
3
,
413
12
,
61
2
,
319
12
,
68
3
,
75
4
,
89
6
,
131
12
,7,
37
12
,
14
3
,18,
76
3
,
143
12
,13,
385
12
,
110
3
,
245
4
,
131
6
,
83
12
,16,
139
12
,
205
6
,
165
4
,
13
3
,
605
12
,
73
2
,
271
12
,
26
3
,
91
2
,
251
6
,
29
3
,4,
1501
12
,
679
6
,
405
4
,
268
3
,
929
12
,
131
2
,
643
12
,
125
3
,
119
4
,
107
6
,
71
12
,20
In[]:=
Module[{f},f[n_]:=If[n<=0,Abs[n-1],2f[n-f[n-2]]];f/@Range[0,10,1/6!]]
Out[]=
1,
1439
180
,
719
90
,
479
60
,
359
45
,
287
36
,
239
30
,
1433
180
,
358
45
,
159
20
,
143
18
,
1429
180
,
119
15
,
1427
180
,
713
90
,
95
12
,
356
45
,
1423
180
,
79
10
,
1421
180
,
71
9
,
473
60
,
709
90
,
1417
180
,
118
15
,
283
36
,
707
90
,
157
20
,
353
45
,
1411
180
,
47
6
,
1409
180
,
352
45
,
469
60
,
703
90
,
281
36
,
39
5
,
1403
180
,
701
90
,
467
60
,
70
9
,
1399
180
,
233
30
,
1397
180
,
349
45
,
31
4
,
697
90
,
1393
180
,
116
15
,
1391
180
,
139
18
,
463
60
,
347
45
,
1387
180
,
77
10
,
277
36
,
346
45
,
461
60
,
691
90
,
1381
180
,
23
3
,
1379
180
,
689
90
,
153
20
,
344
45
,
275
36
,
229
30
,
1373
180
,
343
45
,
7063
,
1891
90
,
7421
360
,
1213
60
,
1427
72
,
874
45
,
761
40
,
3353
180
,
6563
360
,
107
6
,
6277
360
,
3067
180
,
1997
120
,
731
45
,
1141
72
,
309
20
,
5419
360
,
1319
90
,
1711
120
,
499
36
,
4847
360
,
196
15
,
4561
360
,
2209
180
,
95
8
,
1033
90
,
3989
360
,
641
60
,
3703
360
,
89
9
,
1139
120
,
1637
180
,
3131
360
,
83
10
,
569
72
,
1351
180
,
853
120
,
302
45
,
2273
360
,
71
12
,
1987
360
,
461
90
,
189
40
,
779
180
,
283
72
,
53
15
,
1129
360
,
493
180
,
281
120
,
142
9
,
1277
90
,
63
5
,
991
90
,
424
45
,
47
6
,
281
45
,
419
90
,
424
15
,
986
45
,
499
18
,
95
4
,
178
9
,
569
36
,
71
6
,
283
36
,
284
9
,
47
3
,
4231
90
,
6031
180
,20
Full expression not available
(
original memory size:
459.8 kB)
In[]:=
ListPlot[%69]
Out[]=
In[]:=
Module[{f},f[n_]:=If[n<=0,Abs[n-1],2f[n-f[n-2]]];ListLogPlot[{#,f[#]}&/@Range[0,10,1/6!],AspectRatio->1/4]]
Out[]=
In[]:=
Module[{f},f[n_]:=If[n<=0,Abs[n-1],2f[n-f[n-2]]];ListPlot[{#,f[#]}&/@Range[0,10,1/6!],AspectRatio->1/4]]
Out[]=
In[]:=
Module{f},f[n_]:=If[n<=0,Abs[n-1],2f[n-f[n-2]]];Plotf[n],{n,0,10},Frame->True,PlotRange->All,AspectRatio->14,PlotPoints->2000,ImageSize->500,FrameLabel{x,"f[x]"},PlotStyle
Wolfram Cloud

You are using a browser not supported by the Wolfram Cloud

Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.


I understand and wish to continue anyway »

You are using a browser not supported by the Wolfram Cloud. Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.