login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A109010 a(n) = gcd(n,7). 5
7, 1, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 1, 7, 1, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
FORMULA
a(n) = 1 + 6*[7|n], where [x|y] = 1 when x divides y, 0 otherwise.
a(n) = a(n-7).
Multiplicative with a(p^e, 7) = gcd(p^e, 7). - David W. Wilson, Jun 12 2005
From R. J. Mathar, Apr 04 2011: (Start)
Dirichlet g.f.: zeta(s)*(1 + 6/7^s).
G.f.: (-7 - x - x^2 - x^3 - x^4 - x^5 - x^6) / ((x-1)*(1 + x + x^2 + x^3 + x^4 + x^5 + x^6)). (End)
a(n) = 6*floor(((n-1) mod 7)/6) + 1. - Gary Detlefs, Dec 28 2011
MAPLE
A109010:=n->gcd(n, 7): seq(A109010(n), n=0..150); # Wesley Ivan Hurt, Apr 27 2017
MATHEMATICA
GCD[Range[0, 100], 7] (* or *) PadRight[{}, 120, {7, 1, 1, 1, 1, 1, 1}] (* Harvey P. Dale, Apr 26 2018 *)
CROSSREFS
Cf. A109004.
Sequence in context: A055061 A074465 A081229 * A268354 A117825 A010143
KEYWORD
nonn,easy,mult
AUTHOR
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 16 20:46 EDT 2024. Contains 374358 sequences. (Running on oeis4.)