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!)
A115069 a(n) = 3^b(n), where b(n) is #{primes p=1 mod 3 dividing n}. 1
1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 3, 3, 1, 1, 1, 1, 3, 1, 3, 1, 1, 1, 1, 3, 1, 3, 1, 1, 3, 1, 1, 1, 3, 1, 3, 3, 3, 1, 1, 3, 3, 1, 1, 1, 1, 1, 3, 1, 1, 3, 1, 1, 1, 3, 3, 1, 1, 1, 3, 3, 3, 1, 3, 1, 3, 1, 1, 3, 1, 1, 3, 3, 1, 3, 3, 3, 3, 1, 1, 1, 1, 3, 1, 3, 1, 1, 1, 1, 9, 1, 3, 1, 3, 1, 3, 3, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,7
LINKS
Steven Finch and Pascal Sebah, Squares and Cubes Modulo n, arXiv:math/0604465 [math.NT], 2006-2016.
FORMULA
a(n) = 3^A005088(n). - R. J. Mathar, May 19 2020
MAPLE
a:= n-> 3^add(`if`(irem(i[1], 3)=1, 1, 0), i=ifactors(n)[2](n)):
seq(a(n), n=1..100); # Alois P. Heinz, Feb 17 2019
MATHEMATICA
b[n_] := Count[FactorInteger[n][[All, 1]], p_ /; Mod[p, 3] == 1];
a[1] = 1; a[n_] := 3^b[n];
Table[a[n], {n, 1, 99}] (* Jean-François Alcover, Feb 17 2019 *)
CROSSREFS
Sequence in context: A317624 A328575 A106478 * A046556 A046535 A324198
KEYWORD
nonn
AUTHOR
Steven Finch, Mar 01 2006
EXTENSIONS
a(1)=1 prepended by Alois P. Heinz, Feb 17 2019
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 April 28 03:10 EDT 2024. Contains 372020 sequences. (Running on oeis4.)