Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A084662
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A084662 a(1) = 4; a(n) = a(n-1) + gcd(a(n-1), n). +0
7
4, 6, 9, 10, 15, 18, 19, 20, 21, 22, 33, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 69, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 141, 144, 145, 150, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168 (list; graph; listen)
OFFSET

1,1

REFERENCES

Eric S. Rowland, A simple prime-generating recurrence, Abstracts Amer. Math. Soc., 29 (No. 1, 2008), p. 50 (Abstract 1035-11-986).

LINKS

T. D. Noe, Table of n, a(n) for n=1..1000

Eric S. Rowland, A simple prime-generating recurrence.

MAPLE

S := 4; f := proc(n) option remember; global S; if n=1 then S else f(n-1)+igcd(n, f(n-1)); fi; end;

MATHEMATICA

f[n_] := f[n-1] + GCD[n, f[n-1]]; f[1]=4

CROSSREFS

Cf. A084663, A106108 and other sequences mentioned in A106108.

Adjacent sequences: A084659 A084660 A084661 this_sequence A084663 A084664 A084665

Sequence in context: A005659 A010462 A028957 this_sequence A137167 A122492 A133234

KEYWORD

nonn

AUTHOR

Matthew Frank (mfrank(AT)wopr.wolfram.com) on behalf of the 2003 New Kind of Science Summer School, Jul 15 2003

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified October 15 09:18 EDT 2008. Contains 145015 sequences.


AT&T Labs Research